In all cases of final judgment against any person or persons for causing or maintaining an encroachment or obstruction upon a highway, if such person shall, subsequent to such final judgment, by force or otherwise, interfere with any commissioner or commissioners in the performance of his or their duties under this chapter, or if such person shall replace or cause to be replaced any of the encroachments or obstructions which had been removed, or in any way interfere with the said highway, he shall be deemed guilty of a misdemeanor, and upon conviction thereof, shall be punished by a fine not exceeding 100 dollars, or by imprisonment in the county jail not exceeding 3 months, or by both such fine and imprisonment, in the discretion of the court.