Every person convicted of a misdemeanor for which no punishment is prescribed by any statute in force at the time of conviction and sentence, shall be punished by imprisonment in the county jail for a maximum term fixed by the court of not more than ninety days, or by a fine in an amount fixed by the court of not more than one thousand dollars or both such imprisonment and fine.