A person convicted of violating section 3 of the Act (which requires the provision of food and water, adequate shelter and protection from the weather, veterinary care, and humane care and treatment) is guilty of a misdemeanor with a second or subsequent violation raising the offense to a Class 4 felony.