How can I resist popping pimples?

Please help. I think I've formed a bat habit of picking at my face and popping pimples and blackheads. I used to never touch my face but now I do and I have a lot of scars. Any tips on how to stop? 😔