Does your motorized bicycle comply with the regulations for an e-bike. If not, you won't get any sympathy from me for where you are allowed and not allowed with your bike. Get something more appropriate to you and where and how you want to use it. In some jurisdictions, even human powered bicycles are not allowed on side walks.
However I very much like that on my bicycle that I am entitled to all the rights and duties of any other vehicle. Though realize that that does not prohibit more restrictive rules that might apply to particular types of vehicles.