My gardens are in the city and very exposed to passersby. I've sometimes done things to discourage thievery: Planting small fruited tedious to harvest things up close to the sidewalk. Planting underground crops. Planting ugly crops such as warty squash. Planting food among flowers (though for years flowers have gotten stolen a lot more than food). Planting on a hillside to discourage people too lazy to walk up the hill. Front yard prickly pear cactus in a city where few seem to know of the edibility of the pads and fruit.
Today, I came across this melon so ugly it made me first draw a sharp breath and cringe, then laugh. This might be a good anti-theft melon. https://fedcoseeds.com/seeds/prescott-fond-blanc-melon-942 Do you know of more ugly, threatening, or otherwise pass-me-by food plants?
By the way, do I have fences? No, except around my backyard which has rabbit fencing installed probably in the 1920s on one side and chain link installed by the neighbor probably in the 1950s