If a person enters the orchard, field, garden or market garden of another person, without the consent of the owner or occupier thereof, and does any damage to the fruit, vegetables, grain or grass growing or being thereon, or takes, carries away, injures or destroys any of the grain, fruit, grass or vegetables growing or being thereon, the person is guilty of a misdemeanor, and, upon conviction, shall be fined not more than $500, or confined in jail not exceeding six months, or both. If a person commits any of the acts mentioned herein, and if it is charged in the indictment or information and proved that the property injured or destroyed, or taken or carried away, is of a greater value than $1,000, the person is guilty of a felony, and, upon conviction, shall be imprisoned in the penitentiary not less than one year nor more than ten years, or, in the discretion of the court, be confined in jail not more than one year and fined not less than fifty nor more than $2,500.