Every person convicted in this state of any crime of which fraud or intent to defraud is an element, or of petit larceny, or of any felony, who shall previously have been convicted, whether in this state or elsewhere, of any crime which under the laws of this state would amount to a felony, or who shall previously have been twice convicted, whether in this state or elsewhere, of petit larceny, or of any misdemeanor or gross misdemeanor of which fraud or intent to defraud is an element, shall be adjudged to be an habitual criminal and shall be punished by imprisonment in a state correctional facility for not less than ten years.
Every person convicted in this state of any crime of which fraud or intent to defraud is an element, or of petit larceny, or of any felony, who shall previously have been twice convicted, whether in this state or elsewhere, of any crime which under the laws of this state would amount to a felony, or who shall previously have been four times convicted, whether in this state or elsewhere, of petit larceny, or of any misdemeanor or gross misdemeanor of which fraud or intent to defraud is an element, shall be punished by imprisonment in a state correctional facility for life.