An extremely tiny percentage of law abiding Americans are victims of gun crime. Most are suicides and criminal on criminal homicides.

As for walled and guarded neighborhoods, that's mostly to prevent crimes like robbery, vanadalism and trespassing.