Sean Davidson, 23, was told by a sheriff he needs to "grow up" after he admitted racially abusing a man on Union Street.