Any act which, if committed within the limits of a city, town or village, or in any public place, would be a violation of the general laws of this state, shall be criminal and punishable if done on the campus, grounds or roads of any of the state institutions of higher learning. The peace officers duly appointed by the board of trustees of state institutions of higher learning are vested with the powers and subjected to the duties of a constable for the purpose of preventing and punishing all violations of law on university or college grounds, and for preserving order and decorum thereon.