"(1) if the penalty is a misdemeanor or a gross misdemeanor, the person is guilty of a felony and may be sentenced to imprisonment for not more than three years or to payment of a fine of not more than $5,000, or both; and" . . . .