Stopping Left 4 Dead 2 from crashing on Linux

I wanted to play Left 4 Dead 2 recently, but was super frustrated at it crashing in the middle of playing!