Violation of the provisions of this article or failure to comply with any of its requirements, including violations of conditions and safeguards established in connection with grants of variance or special exceptions, shall constitute a misdemeanor. Any person who violates this article or fails to comply with any of its requirements shall, upon conviction thereof, be fined not more than $500.00 for each violation or imprisoned for not more than 30 days, or both, and in addition shall pay all legal costs and expenses involved in the case. Each day such violation continues shall be a separate offense. Nothing in this section shall prevent the county from taking such other lawful actions as are necessary to prevent or remedy any violation.