Any person, firm or corporation, or their agents, violating any of the provisions of Sections 535 to 539, inclusive, of this Article, or failing to comply with any direction or order of the Director of Public Health of the City and County of San Francisco, given pursuant to the provisions of this Article, or any agent of said Director, shall be guilty of a misdemeanor, and upon conviction shall be punished by a fine not less than $50, nor more than $500, or by imprisonment in the County Jail for a period of not less than 10 days nor more than three months, or by both such fine and imprisonment; and any violation of the provisions of this Article shall subject the violator thereof to revocation of any and all permits held.