8. Keep Spice Plants in the Garden
Dogs do not like the smell of pepper, chili, and other spice plants. Coming across to any of it prevents a dog from continuing its path. In case you want to add an additional deterrent to your garden, you can plant these plants along with the other plants. You can also spread on your garden crushed peppercorns and chili powders for your dogs to smell.