IMO gated communities give a false sense of security. I had some friends who were from South Africa. They had about 60 hours surrounded by razor wire and armed guards. People still got in and committed murders.
In his sons kindergarten class of 30 kids there were two who had lost a parent to these kinds of attacks.
A good firearm is one answer but not the best. Seems we should shoot the people destroying our culture and teach our kids some values.
Sadly, it has become a criminal act to even think this.