Any judge of a court of record in this state who practices law in any of the courts of this state, or of the United States, or who renders any professional services or gives any legal advice, must on conviction be fined in such sum as the jury or court trying the same may assess, not less than $100 nor more than $1,000.
Ala. Code § 34-3-11 (1975)