age gap in relationship

I started dating my boyfriend when we were both in high school. We started dating in February and i had just turned 18, and he was 16 and turned 17 in June.

A year later i’m now 19 and he’s still 17 and i want to know if this is bad or not? Can I get in trouble or is it fine?