Crystal Palace gave Manchester City a scare, but were helpless as the Blues came from two goals down to win 4-2.