Saying

Who gives bread to another's dog, loses the bread and loses the dog.