No matter how tempting it is, you should never squeeze pimples. The pressure can push bacteria further into the skin and cause inflammation.
But if there really is no other way, don’t squeeze with just your fingers – put a clean tissue or handkerchief between the skin and your fingertips and only apply gentle pressure. Disinfect the area of skin affected afterwards so as to reduce the risk of infection.
Better yet, use scrubs and masks, or get professional facials regularly to prevent pimples from forming in the first place.