107. The city may, by by-law, prescribe that an offence under a by-law passed in accordance with section 98 or under section 105 or 106, or failure to comply with a prohibition, condition or requirement established in accordance with section 99, 100, 101 or 102 shall entail as a penalty,(1) for a first offence, a minimum fine of not more than $25,000 and a maximum fine of not more than $500,000, imprisonment for not more than 18 months notwithstanding article 231 of the Code of Penal Procedure (chapter C‐25.1), or both penalties together; (2) for a subsequent offence, a minimum fine of not more than $50,000 and a maximum fine of not more than $1,000,000, imprisonment for not more than 18 months notwithstanding article 231 of the Code of Penal Procedure, or both penalties together.