Sidewwalk riding vs. street riding, figure out each of their "rules". Sidewalk riding, including wide-pathway MUPs, be ready to stop. Pedestrians, dog-walkers, slow down. Cross streets and driveway exits, look at what cars are doing. Laws requiring stopping before sidewalks and crosswalks are often ignored. You decide whether you want to be inconvenienced by having to slow down, or being involved in a collision.
Street/road riding, use a taillight, maybe a good blinking headlight. If you can afford it, check out DiNotte, or something equivalent. These aren't legally required in the daytime, but they do alert drivers. For the DiNotte taillight, it's a "What's that ahead?" wakeup/ alert device.
At night, a Monkeylectric side-illumination device is a really nice light.
Fundamentally, if you ride a lot, you want to send an alert to motor vehicle drivers, "I'm in this space." The vast majority of drivers will give you your space. Dinotte taillights are really good at this, if you ride on-streeet/on road.