Maternity leave

Hello, so I work at a chicken poultry processing plant and I was wondering when I should take my maternity leave? I was at work today and was having excruciating cramps in my lower abdomen and I’m worried if I continue to work for much longer I’ll give birth early again and have another stillborn!!

(I am 25 weeks)