After the publication or posting of any ordinance as provided in Section 31027, it is a misdemeanor for any person to use or apply water received from the district contrary to or in violation of the restriction or prohibition, until the ordinance has been repealed or the emergency or threatened emergency has ceased, and, upon conviction thereof, that person shall be punished by imprisonment in the county jail for not more than 30 days or by fine of not more than six hundred dollars ($600), or by both the fine and imprisonment.