Any person committing a third or any subsequent offense against the
provisions of this chapter shall be guilty of a Class A misdemeanor
under the Penal Law and, upon conviction thereof, shall be punishable
by a fine of not to exceed $1,000 or by imprisonment for not more
than one year, or by both a fine and imprisonment.