A 17 year old does not run the risk of arrest for dating a 22 year old. A 22 year old does not run the risk of arrest for dating a 17 year old.
The above answer is a general explanation of legal rights and procedures. It does not constitute legal advice. Nor does it establish an attorney-client relationship between the individual posting the question and the attorney providing the answer.
At your age, I recommend seeking guidance and advice from your parents rather than attorneys on a general forum like this. Hopefully, they have your best interests in mind and are there to protect you in situations like this.
DISCLAIMER: This answer does not constitute legal advice and no attorney client relationsip has been, or will be, created until a valid engagement agreement is signed. No duty arises from this posting. Answers posted here are general and made with limited knowledge of the actual facts of your case. Always speak with an attorney licensed to practice law in your jurisdiction if you wish legal advice specific to your case.