I kept neighborhood cats out of my raised bed garden by
poking short sticks into the ground. If 6-8 inches are sticking out vertically, it keeps cats from finding a comfy place to squat. Seemed to work for me. I had to space them around 6 inches apart randomly.