Before building a fence, it will be important to determine if you are allowed to build a fence at all. Building one in an unapproved way can get you a fine and require you to tear the whole thing down. Before building, check what your local neighborhood rules or homeowner’s association rules are regarding fences. If the fence will be built on a shared property line, then try talking with your neighbor to find out if they’d be willing to share the cost of the fence with you. Cities often also have rules about building fences. You will need to check what they are before building one. Some cities require permits to build a fence of any height, some only above a certain height. Find out if you need a permit or if there are any other restrictions on your building.

How would you rephrase that briefly using Chinese?
明确相关邻里规则。 明确城市规定。