The solicitor of the State Court of Richmond County shall not practice criminal law in any of the courts of this state, except in the discharge of the duties of the office of solicitor of said court, or prosecuting and/or assisting in the prosecution of cases in other courts.