Sometimes I enter the airport at 10.30pm for a 6am flight, simply to spend some more time with a friend, 8/10 times the TSA doesn't say anything - sometimes they ask me to leave the terminal the same day.
It depends completely on the TSA agent I would say. If they give you a headache ask for the supervisor and kindly explain your case, chances are they will let you through.