How do you spot bad neighbors when buying a house?

買房子的時候如何辨別壞鄰居?