When is a viable stage in pregnancy?

I’m 25 weeks and been getting awful cramps! Is this a viable stage?