TW: self harm

From the past few weeks I've been having increasing thoughts about self harm and I'm not able to control them. Also I cant talk about it to my family I don't want to worry them.

My thoughts are not suicidal but more of cutting my forearms and thighs.

How do I stop having such thoughts before I might do something, I don't want to do it, but I cant stop thinking about it