there is no direct relation between pimple and masturbation
u need to apply clindamycin
,benzyl peroxide gel twice a day
u need to take antibiotic or isotretinoin
tab depend upon stage of ur acne
better to consult dermatologist
never scratch or popped it
use face wash with salicylic .
drink ore water ,avoid oily and spicy food
u may need some treatment like peeling ,microderma or laser .