It sounds like you need a physical fence for your dog. I agree that you should talk to your neighbor, and introduce them to your dog if they are interested in meeting him. Life is easier with friendly neighbors. But, regardless - it's safest and best for all involved, to confine the dog