Egor Demin scored a career-high 25 points as Brooklyn snapped a seven-game skid with a win in Utah.