Tony Stark knows that the Infinity War was going to happen
Tony knows and always known that the Infinity War was going to happen.
Since 2012, since he went into space and saw the Chitauri, he only thinks about that.
He can’t sleep, or he has nightmare. He suffers from PTSD, he has panic attacks..
He knows that the Avengers are under armed against all this.
And he feels himself under armed.
His biggest fear is to fail to protect the earth, and the Avengers.
This is why he created Ultron.
And this is why he created Vision.
BUT NO ONE LISTENS TO HIM
Then, the Avengers have divided. Steve and some other Avengers betrayed him.
But Tony still builds a new facility for the Avengers, create a new shield for Cap, a belt for Thor..
And he does his best to make the Avengers as ready as possible to Infinity War.
Tony just want to keep the Avengers together and keep the earth safe.
So the next who says that Tony is a villain or something like that..