"Shmuel the Little" says:
Don't cheer when your enemy falls, and don't be elated when he stumbles, for the Almighty may instead turn the anger towards you.