Any person who fails or refuses to discharge any duty imposed upon him or her by this article or by any final order of the director or board, or who fails or refuses to apply for and obtain a permit as required by the provisions of this article, is guilty of a misdemeanor, and, upon conviction thereof, shall be punished for a first offense by a fine of not less than twenty-five dollars nor more than one hundred dollars, and for a second offense by a fine of not less than two hundred dollars nor more than five hundred dollars, and for a third offense and each subsequent offense by a fine of not less than five hundred dollars nor more than one thousand dollars or by imprisonment for a period not to exceed six months, or in the discretion of the court by both such fine and imprisonment.