Curry scores 31 as Warriors edge Clippers