Each and every violation of, or failure to comply with, any provision of this article shall constitute a violation, punishable as follows: for a conviction of a first offense, by a fine not to exceed $500; for a conviction of a second offense, both of which were committed within a period of four years, by a fine not less than $500, nor more than $1,000; for a conviction of a third or subsequent offense, all of which were committed within a period of two years, by a fine not less than $1,000, nor more than $1,500; and for a fourth offense, all of which were committed within a period of four years, by a fine not less than $1,500, nor more than $2,500 or imprisonment for a period not to exceed 15 days, or both such fine and imprisonment.