They set Infinity War a couple of years in the future, which is their get-out-of-jail-free card for the next few films.
I thought it was an absolute triumph. A proper war film, with multiple battles and strategies and the loss of some main characters (Loki ). Thanos was portrayed wonderfully, you could somewhat sympathise with his cause. The ending was perfect (but like you said, time stone them all back to life otherwise what's the point, Thanos doesn't need stopping/defeating now, he's won).
Aaaaand... Captain Marvel. Squeeze!!!