Triston Casas hit a solo shot in the fifth, Kutter Crawford pitched into the sixth inning and struck out seven, and the Boston Red Sox held on to defeat the Giants 3-2.