Question: how do you stop a dog from having puppies?
Option 0: don't let them around any other dogs.
Option 1: spay or neuter the dog.
Answer: 1