Section 3. If the boundaries of a public way are known or can be made certain by records or monuments, no length of possession, or occupancy of land within the limits thereof, by the owner or occupant of adjoining land shall give him any title thereto, unless it has been acquired prior to May twenty-sixth, nineteen hundred and seventeen, and any fences, buildings or other obstructions encroaching upon such way shall, upon written notice from the county commissioners or board or officer having authority over ways in towns, be forthwith removed by the owner or occupant of adjoining land, and if not so removed said commissioners, board or officer may cause the same to be removed upon said adjoining land.