means that
hostility or harm directed at others may eventually rebound upon the person responsible for it.
When if you wish for bad things to happen to others, bad things might happen to you, the saying “Curses, like chickens, come home to roost” is appropriate.