Violation of any provision of this chapter, as amended and supplemented, upon conviction for a first offense, shall subject the offender to pay a fine not to exceed $500. Upon conviction for a second or subsequent offense within two years of the date of the first conviction, such person or entity being convicted shall pay a fine not to exceed $1,000, and such person or entity being convicted shall be subject to imprisonment for a period not exceeding 30 days, or both, in the discretion of the Municipal Court Judge.