We try to teach the grandkids to mention the dog's name before they approach them, especially if the dogs are sleeping. They learn that they do not surprise a dog . The grandkids are not allowed to tease the dog, either physically or with food and are not encouraged to feed them. This is not counter to what I teach the dogs. The adult dogs that we have, especially the Chessies seem to know the limitations of the children and are remarkably gentle around them.
Food is always a draw though.
The next thing, especially for the older kids, is to respect the power of the dogs - especially the Chessies, but even the Cocker and the Jack Russell. Kids have to be taught to understand their limitations in what they can get the dog to do. This, of course, varies from child to child - but my 60 lb. If she is not in my presence, she is not allowed to put the leash on the dog and work with him. As she gets older, she will be allowed to work more and more but if the Chessie doesn't sit for her, she must realize she doesn't have the strength to make him if he doesn't want to.