Is the neighborhood really that bad or is it just your imagination? The first is are you really so afraid that you will be attacked that you believe you need a deadly defense?
Beyond that, there are considerations to obtaining a firearm.
First, is it legal, does your state/city allow concealed or open carry and what are the requirements/permits?
Can you get proper training to properly use the device? This is not a decision to be made lightly. There should be self defense groups in your area. Seek advice there.
Guns are not toys, they are tools. In the hands of a competently trained individual they can save lives. In the hands of the untrained they can be worse than nothing.