A violation of this article, and any failure to comply with an order to remedy after due service, and any violation of any requirement of this chapter or any statement, plan, application, permit or certificate approved or issued under the provisions of this chapter shall be considered an offense punishable by a fine of not more than $350 or imprisonment for a period not to exceed six months, or both, for conviction of a first offense; and, upon conviction of a second offense both of which were committed within a period of five years, punishable by a fine of not less than $350 nor more than $700 or imprisonment for a period not to exceed six months, or both; and, upon conviction for a third or subsequent offense all of which were committed within a period of five years, punishable by a fine of not less than $700 nor more than $1,000 or imprisonment for a period not to exceed six months, or both.