I remember getting hollered at by the tam o’shanter wearing cyclist when my children and I were an inch from the pavement as he sped by.
Easiest way to enforce safety would be to ticket any bike rider riding on the sidewalk. And as long as we are at it, make helmets mandatory for all riders regardless of age, on any two wheeled vehicle motorized or not.

During the council meeting Wednesday, the council discussed existing city code and how it applies to e-bikes, bicycles and other devices on the coastal recreational trail, in parks and in other public spaces. The discussion focused on enforcement challenges, safety concerns and whether current regulations reflect current usage.
Currently, e-bikes are now allowed in Perkins’ Park, Lovers Point Park, Pacific Grove Golf Links, El Carmelo Cemetery, and the property ocean-side of Ocean View Boulevard to 17th Street. The exception is on the paved portion of the recreational trail.
P.G. Looking (finally) Into Laws Regarding Electric Bicycles