Electric bicycles traveling that fast probably shouldn't be permitted on the same channel/road that foot-traffic uses. Though I don't live in Beijing so I can't speak to their decision (or lack of) for that.
Likewise, in the U.S. I've seen a few downtown areas try to be "green" by simply throwing some bike lanes on a 5-lane road. It's quite dangerous to ride a bike along that because of the traffic going 35-40mph. Separate that bike lane with bollards, at minimum, or build a separated "sidewalk" for e-bikes and scooters. Putting bicycles on the same road as 3,500 lb vehicles hurtling at 40mph is a joke.
Beijing used to have a lot of such bike lanes in 1999 when I first visited (the land of the sea of bicycles) but sadly all of this has been turned into parking for cars.
Are you speaking as a pedestrian/cyclist/driver? What kind of speeds are people driving at?
If it's an electric bicycle, then since it's now "motorized", simply cannot ride on the sidewalks.
In China, it seems like almost anything goes. ;)