Carmelo Anthony scored 28 points and hauled in nine rebounds as the New York Knicks claimed an 89-86 win over the Boston Celtics at TD Garden.