Always Always Always check the New York transit system's websites to see if there are any service interruptions to/from the airports.
Better prepared than not.
I ended up in the Bronx the first time I went there and I arrived at 10:30pm. It was scary as fuck.
Otherwise, pay attention to the subway trains and where they're going. Take an express - you're GG'd.