The girl being a "prodigy" implies that she had skipped multiple grades, so she was able to get into University before the average age group (18 years old). Since 18 is the legal age, this is subtly implying that the girl is under the age of 18 and thus dating her would be illegal.