Any person who is convicted of any violation of this article relating to activities on an existing and improved single-family or two-family residential lot shall be liable for a penalty of not more than $100 for a first offense and a penalty of not more than $500 for each subsequent offense. For all other violations, any person who is convicted of a first offense of violating any of the provisions of this article shall be liable for a penalty of not more than $1,000 per violation or a term of community service for no more than 30 days, or both, at the discretion of the court having jurisdiction over this matter. Subsequent offenses, other than the first, shall incur a penalty of $1,250 and a term of community service no more than 90 days or no more than 90 days' imprisonment, at the discretion of the court having jurisdiction over this matter.