The premise of Avengers: Infinity War was largely based on the Infinity Gauntlet comic. In it, Thanos wants to impress Death by destroying half of all life on the universe. He assembles the Infinity Gauntlet and snaps his fingers, just like in the film
and the remaining Avengers have to work together to bring him down.
Considering that the remaining heroes not decimated by the snap will be acting their vengeance in Avengers: Endgame, this comic is a must-read before you see the film. It's interesting to see how Earth's Mightiest Heroes defeated the Mad Titan then, and the comparisons with the movie will be fun to see.