A city of the first class may pass rules and ordinances imposing penalties and fines not exceeding one hundred dollars, regulating, protecting and governing the cemetery, the owners of lots therein, visitors thereof, and trespassers therein. The officers of such city shall have as full jurisdiction and power in the enforcing of such rules and ordinances as though they related to the city itself.