Per CDC work in Wilmington (yes, they still do research on violence), Andrew Papacristos work in Chicago, Boston, etc, the King County ER study of gunshot wound victims, and law enforcement studies in city after city , the single largest predictive determinant of whether a person will be a victim of criminal violence is if they associate with people with histories of such violence (and their associates).

Don't do that, don't be part of one of those networks of violence, and your risk of being a victim of violent crime in this country is about as low as anywhere in the world.

Access to guns, poverty, race, etc, etc, rank far lower, as violence is not evenly distributed within communities sharing each of those other factors. Instead, violence is driven by a discrete, small, sub-culture of violent people, who primarily prey upon each other over criminal activities, and real and imagined slights most normally acculturated people of every race/class/economic status would consider trivial.