By cleaning up the poo before the dog gets to it. To most human's dismay, most dogs will eat their poop when young, it is a natural behavior of many animals. In hamsters for example, it is extremely common as they need to eat their own poop to properly absorb all the nutrients of it.
Unless your dog has parasites, I wouldn't be concerned. He may outgrow it if he is well fed.