(a) Any person who drives a vehicle, not his or her own, without consent of the owner thereof, and with intent temporarily to deprive said owner of his or her possession of such vehicle, without intent to steal the same, is guilty of a misdemeanor. The consent of the owner of a vehicle to its taking or driving shall not in any case be presumed or implied because of such owner's consent on a previous occasion to the taking or driving of such vehicle by the same or a different person. Any person who assists in, or is a party or accessory to or an accomplice in any such unauthorized taking or driving, is guilty of a misdemeanor.
(b) Any person violating the provisions of this section is, for the first offense, guilty of a misdemeanor and, upon conviction thereof, shall be fined not more than $500, or confined in the county or regional jail not more than six months, or both; for the second offense, is guilty of a felony and, upon conviction thereof, shall be fined not more than $3,000, or imprisoned in a state correctional facility for not less than one nor more than three years, or imprisoned in a regional jail for not more than one year, or both fined and imprisoned; for third or subsequent offenses, is guilty of a felony and, upon conviction thereof, shall be fined not more than $5,000, or imprisoned in a state correctional facility for not less than one nor more than three years or both.