Pursuant to § 10 of Municipal Home Rule Law and § 268 of Town Law, any person, firm, or corporation which commits an offense against, disobeys, neglects, or refuses to comply with or resists the enforcement of any of the provisions of this chapter shall, upon conviction, be deemed guilty of a violation and subject to fine and/or imprisonment.