Here is what I do:
buy some lemongrass oil and a spray bottle.
20 drops lemongrass oil + 1 - 2 cups water. spray the perimeter to your heart's content... cats and dogs don't like the smell.
I spray that on my sidewalk and around my mailbox to keep neighborhood dogs from using my lawn as a litter box.