No person shall be permitted to practice as an attorney in any of the courts of this state while holding the office of judge of the Supreme Court, Clerk of the Supreme Court, judge of the Court of Appeals, judge of the district court, judge of the Nebraska Workers' Compensation Court, or judge of the county court. No sheriff, constable, county clerk, clerk of the district court, or jailer shall practice as an attorney in any court in the county where he or she holds office. Such prohibition shall not apply to acting judges of the Nebraska Workers' Compensation Court appointed under section 48-155.01. An attorney at law who holds the office of clerk magistrate shall not be permitted to practice as an attorney in any action, matter, or proceeding brought before himself or herself or appealed from his or her decision to a higher court, nor shall any county judge draw any paper or written instrument to be filed in his or her own court except such as he or she is required by law to draw. No clerk magistrate shall draw any paper or written instrument in any matter assigned to him or her except such as he or she is required by law to draw. Any person who violates any of the provisions of this section shall be guilty of a Class V misdemeanor.