If it is punishable by a year or less it is a misdemeanor. If it is punishable by over a year in custody as a potential sentence it is a felony.