What can I do to reduce the chances of scarring?

The best thing to do is to visit a good dermatologist and get treated. A few other things can also help like applying sunscreen daily, avoiding comedogenic cosmetic products, avoiding smoking and squeezing pimples, over-exfoliating the skin, etc.