As for those who think that Imran khan isn't having the right policy, I have a question for them. There is a fight between two people, one of which is a notorious badmash, what will the first thought that will come to your mind? Let me guess, you will guess without any second that the notorious badmash might be on the wrong side, right? This is what Pakistan's perception in the outside world built specially after the 9/11 saga. Ask any foreigner about India and Pakistan and you shouldn't be surprised them calling India as Victim while Pakistan being sponsor of terrorists/taliban. No matter how much you disagree with it or how much the ground realities are different from their perception but this is what their perception is and you can't do anything about it.
India wanted to cash in on this fact, and at a time when they were also stronger economically/diplomatically. They created the Balakot Drama knowing that the world will say that India had hit terrorists camps, while Pakistan retaliated to that, which started the war(and probably they wanted to move ahead and take POK in all that knowing that they were economically in that position while Pakistan was very weak and wouldn't have afforded a war), but fortunately India couldn't hit their target, otherwise you already know that they had created the fake news already that they killed 300 terrorists in that strike while hitting a terrorists camp. God knows if they had really hit that Madrassa filled with Madrassa students, their propaganda was right on track. And then luckily we had a more competent Airforce to further tell India and the world that in case of any war they shouldn't think it will be a piece of cake for them.
Conclusion: Imran khan successfully restored some of the image of Pakistan and perception about Pakistan that Pakistan no longer pursue the policy of being the aggressor and wanted peace with everyone, for resolution of conflicts. Meanwhile he was also successful in highlighting Modi as a Hindu nationalist and a war monger(against muslims), and now the world somewhat understand this fact but is mostly driven by it's own interests(Trade related) with India which is why they are showing some caution against Modi/India. But all in all Imran khan was successful until now in both of his goals. Pakistan still can't afford to go to war but Imran khan is making sure that when there is a war we will be considered the Victims of that war, not the Villains.