The most common legal definition of e-bikes is that they are pedal-assist bikes, meaning you have to pedal for the motor to be allowed to power the bike.
That particular legal room also tend to restrict the power of the motor to 250 W. About 1/3 HP.
This means that if you only pedal enough to satisfy the conditions of the control system of the bike - or hack the controller - it can be kinda sluggish on climbs and takeoffs - depending on the weight of rider/bike and bike configuration.
If you use a pedal-assist e-bike an an e-scooter, it's probably entirely possible to overheat a motor. Whether the system is clever enough to recognize this and shut down before damage occurs or not I can't tell.
If you don't want to pedal, buy a scooter instead. It'll be built for that kind of use and likely to work for it.