Spencer Dinwiddie scored a game-high 32 points to lead the Brooklyn Nets to a 112-107 victory over the Boston Celtics.