That is a hedgehog. I am sorry, but I do not know the gender. My theory is that maybe its a female hedgehog because it curled up into a ball when it saw you. Males (of any creature) usually fight the predator. They are harmless if you don't touch them. I hope it helps!
“She conquered her demons and wore her scars like wings. ”
― Atticus Poetry.