I'm in a situation which I am stuck in... I like this 18 year old boy, but I'm not sure if it illegal for him to date me... is it illegal in california?

And I also want to know what is the age limit in order for it to be illegal... (like an 18 year old dating a 17 or younger) in california

Need answer quick

Thanks a lot...