When you need to buy a home, there are many issues that you normally have to consider before making a final decision about which one you will buy. The fact that you normally have to spend a lot of money on one and the fact that you are likely to have borrowed it means that you can never afford to take any chances as far as such decisions are involved.
When buying a house, search for safe neighborhoods. Consider family safety. Be aware of bad neighborhoods.