(d) Notwithstanding any other provision of law, probation shall not be granted to, nor shall the execution or imposition of a sentence be suspended for, any adult person convicted of felony violations of this section who previously has been convicted of felony violations of this section or Section 548, or of Section 1871.4 of the Insurance Code, or former Section 556 of the Insurance Code, or former Section 1871.1 of the Insurance Code as an adult under charges separately brought and tried two or more times. The existence of any fact that would make a person ineligible for probation under this subdivision shall be alleged in the information or indictment, and either admitted by the defendant in an open court, or found to be true by the jury trying the issue of guilt or by the court where guilt is established by plea of guilty or nolo contendere or by trial by the court sitting without a jury. Except when the existence of the fact was not admitted or found to be true or the court finds that a prior felony conviction was invalid, the court shall not strike or dismiss any prior felony convictions alleged in the information or indictment.
This subdivision does not prohibit the adjournment of criminal proceedings pursuant to Division 3 (commencing with Section 3000) or Division 6 (commencing with Section 6000) of the Welfare and Institutions Code.