What did he mean by this?

Ok so when I turned 18, my friend made me a birthday card and asked my friends sign it. One guy I had a crush on also signed it. I think he had a crush on me too but he was kinda shy. He wrote "happy birthday! Be careful you're legal now" what did he mean by it?

What did he mean by this?
Post Opinion