WARNING!!! TMI! Need help!!

So, I am 5w1d pregnant. Anyways, I been very constipated. Well I just went to the bathroom and when I wiped there was ALOT of blood on the

Toilet paper. And when I looked in the toilet there was like a pool of blood in it like I was on my period really bad but the blood isn't coming from my vagina, it's coming from my anus! Please help! I'm worried about my baby! Will this hurt it?