If from the evidence it appears that there is probable cause to believe that an offense has been committed and that the defendant committed it, the committing magistrate shall forthwith hold him to answer in the trial court of the county having jurisdiction of the offense. The defendant may cross-examine witnesses against him and may introduce evidence in his own behalf. The rules of evidence shall apply, except that an objection to evidence on the ground that it was acquired by unlawful means is not properly made at the preliminary hearing. Motions to suppress such evidence must be made to the trial court as provided in §§ 23A-8-3 to 23A-8-9, inclusive.
SDCL 23A-4-6