Research the neighborhood before you buy.