horny... afraid of cramping

I've been fighting the urge to masturbate or have sex.. but extremely horny! At about 6 weeks, I had an orgasm and had painful/uncomfortable cramps. I'm now 9 weeks and struggling to fight it off! is cramping bad for the baby? this is my 1st