Painful poops

Does anyone else here have IBS and suffer from cramps before having to go to the restroom and then have to go through painful poops that take forever 😭 if you do, how do you make yourself feel better or prevent it?