Golden State trailed 88-87 with 4:02 to play but scored 19 of the game's final 24 points to pull out a 104-96 win.