Good question. If you dont have sexual activity you are ok. Even when she becomes 18 you are always at risk of being accused of forcible sex so be careful with the women who you date or associate with of course. If you have sexual activity with a 17year old you are correct in that it can be regarded as corruption of a minor if she or her parents wish to attempt to press charges. Always avoid a situation where the female becomes intoxicated or impaired by drugs because you can be guilty of taking advantage sexually of an impaired person and that is as serious as rape. Rape carries up to 10 years ordinarily if your convicted of forcible sexual conduct. And yes it includes more than intercourse. The closeness in age you are referring to is fairly complicated to answer in this short space. Hope this helps.
I would consult a local attorney but remember anytime anyone accused you of a crime you can be charged, you may win but it is her word against yours and if you are worried now you must know or feel something that has validity. if you are worried, why risk it. Life is short and your reputation is valuable be careful.