Dog & children don't know right from wrong & have to be taught. I have both in my life & am now a grandmother. I guess repetition is the key factor here along with patience. Knowing the child or dog you learn what to expect. If you call the child or dog & they run in the other direction you patiently go get them. The dog gets petted & the child gets taken by the hand & led away from wherever they were running too. I use petting the dog & talking nicely to them as a reward & sometimes a biscuit to get them to understand they will be treated with doggy respect.