Masturbate during pregnancy

First is it safe to masturbate? Then i madturbated tonight. But then again my bottom part of my stomach is hard why is it hard ?? Help