fair enough. I suspect there is usually an impedance mismatch in these discussions where each party is imagining a very different context. you seem to be envisioning a densely packed sidewalk with cyclists at a moderate speed.
when I ride on the sidewalk, it is in a small town or suburban setting where there is virtually no one on the sidewalk (if it even exists) and fast SUVs and crossovers in the street. in this situation, I usually just pedal a couple times and then coast twenty feet until the bike won't stay up. if I see a pedestrian I get off and stop until they pass me. I really don't think this should be illegal.