If, upon the trial of any person for a misdemeanor, the facts given in evidence amount in law to a felony, he shall not by reason thereof, be entitled to an acquittal of such misdemeanor, and no person tried for such misdemeanor shall be liable to be afterwards prosecuted for felony on the same facts, unless the court before which the trial shall be had, shall discharge the jury from giving any verdict upon such trial, and shall direct such person to be indicted for felony.
MCL 768.4