Hi, welcome to HealthcareMagic.
You are suffering from a condition called paraphimosis
, where the foreskin cannot be pulled back over the head of the penis. Pressing on (compression of) the head of the penis while pushing the foreskin forward may reduce the swelling due to paraphimosis. If this fails, prompt surgical circumcision
will be needed. Masturbation
does not have any relation to your present condition nor it cause low sperm count