AGE ILLEGAL?

I'm 17 and the guy I slept with told me he was 24 but today he told me he's turning 27 in 4 days. I already thought 24 was a little old so when I found out he was 27 I got angry at him for lying to me. 
The other thing is:
We had sex where I did gave consent to but the first time he wanted to have sex I didn't want to and told him no and stop multiple times but he proceeded trying to put it in. He also did this after we had sex with consent and told me it wasn't fair that I didn't want to give him some after we already had sex.