Section 2. That any wilful injury to the grounds, buildings or appurtenances shall be punishable, in any court of competent jurisdiction, by a fine not exceeding fifty dollars or by an imprisonment not exceeding six months, or both, or either, at the discretion of said court.