No justice of the supreme court shall practice as an attorney in any of the courts of this state, nor give advice touching any cause pending, or to be brought therein.