Translation:Shulchan Aruch/Choshen Mishpat/377

Paragraph 1- If one has a public path going through his field and he took the path back and gave them a path on the side, that which he has given is indeed given to the public and that which has taken back he will not acquire. If the public took possession of a border with permission, one is prohibited from ruining it.