With the limited info here, it's kinda hard to make a call since we don't know the particulars.
But, in general, it is an excellent idea to talk to lawyers, cops, judges about a problem; and to file all kinds of reports and get no-contact orders/restraining-orders.
Sure, none of that will actually prevent a bad guy attacking you, but you're going to look a whole lot better to the jury after you have to shoot the guy.
If you have solid documentation of his/her harrassment, attacks, stalking;
and if you can prove (via such reports) that you have made every logical effort to avoid a confrontation;
then you are going to have a much easier time proving that your shooting was a justified last resort to save your life.
Restraining orders do not prevent crime, they only label someone as an "Official Bad Guy".
That's my opinion, -Kframe