Any person violating any bylaw or regulation approved in section 273-13, shall be fined not more than $25 and costs; and in default of payment, shall be imprisoned not more than three months.