(a) Notwithstanding any provision of this chapter, no person shall park in a parking meter space when otherwise directed by a police officer or fireman or when parking is prohibited by properly posted signs.
(b) Except as otherwise provided in this subsection, whoever violates this section is guilty of a minor misdemeanor. If, within one year of the offense, the offender previously has been convicted of or pleaded guilty to one predicate motor vehicle or traffic offense, whoever violates this section is guilty of a misdemeanor of the fourth degree. If, within one year of the offense, the offender previously has been convicted of two or more predicate motor vehicle or traffic offenses, whoever violates this section is guilty of a misdemeanor of the third degree.