Masturbation

Why is it when I’m on my period I always feel so frisky and want to masturbate?! Is it wrong to feel this way!? Can anybody give me some tips and ticks to cope with this?