Whenever a peace officer makes an arrest without warrant for a misdemeanor within magistrate trial jurisdiction, he shall take the arrested person to the nearest available magistrate court without unnecessary delay. In such cases, a complaint shall be filed forthwith by the peace officer and a copy given to the defendant at or before the time he is brought before the magistrate.
NMS § 35-5-1