I hope this question is appropriate here.
I moved into a house in a nice neighborhood a few months ago. I get along with most neighbors very well, but there is the one troublemaker like in every community. I'm currently replacing my old and rotten wooden handrail next to some stairs which are used by all neighbors. They were not really usable as such in fear of splinters and if one would rely on them when he stumbles they would probably fall apart. The new ones are made of sturdy aluminum with LEDs for the night to see the steps better. So an improvement in every way.
This certain neighbor immediately contacted the authorities and harassed the contractors as he considers them unsafe as they are just handrails without paling, so a small child could walk under it and fall into a small ditch where a funicular runs in parallel. In this specific case he mentions his grandchild who actually lives there, he only owns the house and rents it to his daughters family. I order some netting on the area where the fall to this ditch is above 1m, but for optics and the price I decided against it where the fall is only 50-60cm. I am aware if someone falls and gets injured, my insurance has to pay. But I don't see how he could force me to build a fence instead of just a handrail.
Talking with other neighbors, everyone dislikes that guy and against few of them he already took legal action. One had to cut down a tree a previous owner planted a bit too close to his property.
I am planning to a larger remodeling of my land and even though my property only touches his at a corner I fear he will again try to take legal action for whatever reason he feels fancy.
How can I prevent this or is there even a legal action I can take against him if it turns out as I fear?