I lived in a gated community for a year.
One night, around 3am, I happened to glance outside to see two guys emerge from the forest and hop over the tall spiked iron fence with little effort. My faith in “gated communities” evaporated.
Static defenses serve only to annoy the enemy, unless covered by observation and direct fire.
The fence jumpers would have thought twice if Castle Doctrine was extended to cover the perimeter of the gated community, and trespassers such as you observed were subject to being shot on sight.