There are many unpleasant truths regarding safety, violence, using guns for protection, quality policing, and public involvement. These issues are intertwined.
Politicians and law enforcement administrators often credit law enforcement with the safety enjoyed in nicer neighborhoods. We don't deserve the credit. Safe neighborhoods are not made so by quality policing. Truth be known, there is an inverse relationship which exists regarding quality policing and neighborhood safety.
Your sharpest and most capable officers always work in, or were trained in, high crime areas. They had a high level of violent incidents to learn from and made observational arrests without radio calls to guide them toward offenders. This baptism of fire is how they got good at spotting criminals and stopping them. They see more violence and they are far more likely to be shot at and to shoot back. These officers typically commute long distances for the excitement and privilege of impacting crime and violence. But their hard work is not rewarded with the creation of a nice and safe neighborhood. Once crime sets in, it is like cancer. The hard working officers in violent areas are there to perform figurative and literal triage. Unfortunately, once crime and violence sets in, the bleeding seldom stops.
Officers policing nicer and safer neighborhoods commonly concentrate on traffic issues and answering calls for service. They often specialize in appearance issues rather than impacting crime.
Safe neighborhoods are made so because of a high level of care, involvement, and investment on the part of the home and business owners. These populations tend to notice people who are not familiar and they watch them. Some times they follow the strangers they see and call the police with seemingly silly concerns. This deters crime and violence.