Not that I dislike cats but cats and garden do not go together. Often I see strayed cats coming into my garden and start to use my garden bed or planter box as their litter box. My plants are affected by it. First they trampled on my plants and their litter destroys the soil PH. A few of my plants died because of these stray cats.
I learn a natural way to keep them away. I use diluted vinegar and spray it at the pots of the side of the garden beds. They dislike the smell and they will not come near it. You have to spray it once a week to keep them away. So far it works!