No person shall practice law in a court of this state, except a magistrate court, nor shall a person commence, conduct or defend an action or proceeding unless he has been granted a certificate of admission to the bar under the provisions of Chapter 36 NMSA 1978. No person not licensed as provided in that chapter shall advertise or display any matter or writing whereby the impression may be gained that he is an attorney or counselor at law or hold himself out as an attorney or counselor at law, and all persons violating the provisions of that chapter shall be deemed guilty of contempt of the court in which the violation occurred, as well as of the supreme court of the state; provided, however, that nothing in this section shall be construed to prohibit persons residing beyond the limits of this state, otherwise qualified, from assisting resident counsel in participating in an action or proceeding.
NMS § 36-2-27