Any assistant district attorney who acts as attorney for, represents or defends any defendant charged with a criminal offense of any kind or character in any court, state, municipal or federal, in this state, shall be guilty of a misdemeanor and, upon conviction, shall be fined not less than $100.00 nor more than $1,000.00.
Ala. Code § 12-17-195 (1975)