Blood after I pooped

Okay so my period ended yesterday. Well tonight I had a stomach ache. It's one of those stomach ache where it gets cold in your room that your stomach aches a lot. Idk if it just me but it happens all the time in the morning since it's the coldest at those times. Well I went to poop and it really hurt when I pushed it out, it felt like something cut my butt hole then I wiped and seen blood. I smelt it to see if it's still period blood but it wasnt. It was just normal blood and some of it was clotted. After wiping thoroughly I noticed it's just around my butt cheeks not my vagina. Then I wiped my vagina several times to see if it came there and there was no blood. I'm very concerned and worried so please let me know what I should do.