Hi, Thanks for query.
It sees that you have got infection under foreskin.
It is possible that due to collection of smegma
infection occurred and so you are not able to avert the fore skin.
Go for antibiotic medicine course under your doctor's guidance.
Apply antibiotic cream after proper cleaning the part with antiseptic liquid.
Ok and bye.