(a) Notwithstanding any provision of this code to the contrary, any person who knowingly and willfully violates an administrative order of a court, a rule or emergency rule promulgated by the secretary of administration, a joint rule of the Senate and House of Delegates or a rule of the Senate or House of Delegates relating to access to government buildings or facilities or portions thereof under their control or who knowingly and willfully aids or abets another to violate such an order, rule or joint rule is guilty of a misdemeanor and, upon conviction, shall be confined for not more than thirty days or fined more than $500, or both.
(b) Any person who violates the provisions of subsection (a) of this section with the intent to commit a crime which constitutes a misdemeanor is guilty of a misdemeanor and, upon conviction, shall be confined in a county or regional jail for not more than one year or fined not more than $1,000, or both.
(c) Any person who violates the provisions of subsection (a) of this section with the intent to commit a crime which constitutes a felony is guilty of a felony and, upon conviction, shall be incarcerated in a state correctional facility for not less than one nor more than five years or fined not more than $5,000, or both.