Is it safe

I’m pregnant and I have a lot of back cramps leg cramps and stomach pains I drink like 4 Advil liquid gels sometimes more all at once

What I’m concerned about is if it’s gonna effect me or the baby ?

Please no rude comments