A person who knowingly violates AS 08.40.005 - 08.40.200, or who knowingly violates a valid regulation or order of the department or a minimum electrical standard established under AS 18.60.580 - 18.60.590 that was in effect at the time that the installation or repair was made, is guilty of a misdemeanor, and upon conviction is punishable by a fine of not more than $5,000.