The first thing to come to mind -- ouch!
The second -- don’t shave the tops off pimples.
Shaving pimples won’t help them clear faster. What it can do is open your skin up to infection and possible scarring. Besides, acne treatments can sting quite a bit when applied to broken skin.
Instead of shaving over pimples, you should shave around them as much as possible.