The age of consent in New York is 17. Thus, if you are 17, dating someone who is 23 is not unlawful. But bear in mind that just because something is not illegal does not mean that it is recommended. And the six-year age difference is, in some ways, a world of difference -- it is the difference between a high school student and someone who has graduated college and is in the working world. So, be careful.
Good luck to you.
So long as it is not a student teacher relationship, there is nothing illegal about it. I would avoid crossing state lines until the younger party attains to the age of 18 though.
Best,
Tom Kenniff