Is it your dog? I suggest you seek advice from a professional trainer. There's lots of advice online - but if the situation is dangerous, you should get help.
If it's your neighbor's dog, try speaking to them about your safety concerns. If they don't take you seriously, you may need to register a complaint with animal control.