An infraction is punishable by a fine not to exceed two hundred fifty dollars ($250) per violation. A misdemeanor is punishable by a fine not to exceed one thousand dollars ($1,000) per violation. The court shall weigh the gravity of the offense in setting the penalty.