Notwithstanding Section 21966, for the purpose of assuring the safety of pedestrians, including seniors, persons with disabilities, and others using sidewalks, bike paths, pathways, trails, bike lanes, streets, roads, and highways, a city, county, or city and county may, by ordinance, regulate the time, place, and manner of the operation of electric personal assistive mobility devices as defined in Section 313, and their use as a pedestrian pursuant to paragraph (2) of subdivision (a) of Section 467, including limiting, prohibiting entirely in the local jurisdiction, or prohibiting use in specified areas as determined to be appropriate by local entities. State agencies may limit or prohibit the time, place, and manner of use on state property.