It is unlawful for any person to stake, confine or pasture any animal on any public school ground, or other public, federal, State, County or City property, or any railroad right-of- way, or on any property without the consent of the person owning or controlling such property.