Municipalities may make, ordain and establish all necessary and proper rules and police regulations for the protection of property and the preservation of peace, order and propriety of conduct in all public parks owned and maintained by any such municipality, whether situated wholly within or wholly without, or partly within and partly without, the corporate limits of such municipality. Such rules and regulations shall have, within the limits of any such parks, like force and effect as though such parks were situated wholly within the corporate limits of such municipality. Such municipalities may prescribe punishment by imprisonment for a period not exceeding thirty days or a fine not exceeding one hundred dollars for violation of any such rules and regulations.