Cologne came back from two goals down to beat Eintracht Frankfurt 4-2, pulling out of the relegation places as a result.