What is the meaning of [good fences make good neighbors]

A good relationship between neighbors depends on each respecting the other’s privacy and not entering his or her property uninvited; also used more broadly of international relations and the need to maintain trade barriers and border controls.