Any sheriff, deputy sheriff, constable, deputy constable, police or other peace officer, who shall fail upon demand of any member of a county board of elections, judge or inspector of election, or overseer to render such aid and assistance to him as he shall request in the maintenance of peace and in the making of arrests, as herein provided, or who shall wilfully hinder or delay or attempt to hinder or delay any member of a county board, judge or inspector of election, or overseer in the performance of any duty under this act, shall be guilty of a misdemeanor, and, upon conviction thereof, shall be sentenced to pay a fine not exceeding five hundred ($500) dollars, or to undergo an imprisonment of not less than three (3) months nor more than two (2) years, or both, in the discretion of the court.
25 P.S.§ 3511