Section 40. If such chief engineer or other officer wilfully refuses to make such certificate, he shall forfeit for each person entitled to be so certified not more than five dollars, to the use of such person, or, on complaint, to the use of the town; and if such engineer or other officer makes a false certificate in such case, he shall forfeit not less than $50 nor more than $100.