There are already 'general laws' (not e-bike/pedelec specific) that restrict where cyclists can ride. Since 1835, cyclists (riders of penny-farthings back then) were prohibited from riding on footways. Getting knocked down by a 5ft cartwheel, understandably, seems to have been seen as an unacceptable risk to pedestrians.
Some 40 or so years later, around 1880 (I think) equal sized wheels and a chain drive that we all know, became common place. Mr Dunlop and pneumatic tyres helped get it there.
It wasn't until 1896 (I think) Mr Benz produced a motor vehicle that might look like something we might also recognise. So two wheels were condemned to roads only,
60 years before motors cars, were 'a thing'.
Cyclists have been on the back-foot, for almost 200 years.....
In my county of Hertfordshire, the police seem to be quite fair about anything two-wheeled. Riding on pavements doesn't draw attention, riding an e-scooter doesn't draw attention. Harming someone, riding like a complete dick, WILL get you some attention. In these parts, pedestrian areas like town centres, have completely banned cycling, though I still see people riding bicycles (at sensible speeds) through them. Again, being respectful to the environment, (public walking space) gets you largely ignored.
When you ride this ....
Plainly labelled "1000w" ..... hub motor on a pavement (where has the bike been stopped), you really are asking for a problem that will put a crimp on your day.
I'm 100% sure, the police would rather be doing anything other than stopping cyclists or e-scooter riders. There are almost never any victims to these misdemeanours, and with so much crime with victims who really do need help and support from the police, it would be reasonable to expect the police would themselves rather be dealing with those crimes. Not exactly career enhancing is it, "confiscating e-bikes"?
The lesson here then; "don't prod the bear, and the bear won't bite"?