No person shall drive or ride any horse or other animal upon any public highway or thoroughfare, within the city limits, immoderately, or beyond a moderate gait, or in such a manner as to endanger the safety of persons on the highway or thoroughfare.