A great home in an undesirable neighborhood (for any of several reasons) is not very worthwhile from a quality of life or from a home value perspective. Learn as much as you can about the neighborhood (online, from visits or at local libraries) and make sure your needs are met.