A violation of any of the provisions contained in this chapter or failure to comply with any of its requirements, including violations of any conditions and safeguards established in connection with grants of variances, site plan approvals or the establishment of a planned unit development, shall constitute a misdemeanor, and upon conviction thereof, shall be punishable by a fine of not less than $100 nor more than $250 or by imprisonment for not more than seven days, except that:
(a)
When the person was found to have violated any of the provisions of this chapter within the preceding five years, the fine may be of not less than $250 nor more than $500 or by imprisonment for not more than 15 days for each violation; and
(b)
When the person was found to have committed two or more such violations within the preceding five years, the fine may be of not less than $500 nor more $1,000 or by imprisonment for not more than one year, or both.