As you have not provided citizenship and residence information, the simple question is to ask whether you have the proper documents to enter at both IST and TBS? What carrier have you booked JFK-IST-AUH? Why are you considering waiting until your check-in at JFK to have your ticket changed?