means that
praising a child may win the goodwill of a parent who takes pride in that child. The older phrase make love to can mean courting or flattering someone.
Imagine a case where mothers are fond of their children and are very pleased and flattered to hear compliments about them; so someone can have his way with a mother…; then “Praise the child and you make love to the mother” fits well.