In the MCU, the Time Stone allows the user to travel through and freeze time.
In Infinity War, why didn't Doctor Strange use it to go back to each stone's location before Thanos got them and take them? Or, at the very least, why didn't he go back before the failed attempt to steal the Gauntlet from Thanos and warn them that they would fail?