Really cool game, but the last level is just WAY TOO HARD, and there is a glitch that if you are over spikes, you can just switch the gravity and cheese the first levels.
That is weird . Did not found any glitches. It is possible and intended to be able to change gravity after jumping. Maybe that is what you did