Nothing to do with carrier or alliance. It violates the rules because the connection at JFK is too long. Frankly, there are airports where there's no particular reason not to do an overnight interline, but JFK isn't one of them. I wouldn't take AA up if they offered.