Masturbation!!

Maddy
I just got my first period so I am afraid that I could potentially injure or get an infection or could damage myself if I masturbate. If that is true and I could hurt myself or get an infection what can I do to for fill the urge or you know what I mean, is there another way away I can still do it but without damaging or causing infection. Please help me