As someone else once pointed out, if the IJA had made it as far as India, Gandhi’s headless, bayoneted corpse would have last been seen floating down the Ganges.
Stalin would have ground his cigarette out in Ghandi’s eyeball just before he had his skull made into an ashtray.
That’s the truth. Ghandi was luckier than he knew, in that he dealt with men at whose civilization he sneered. I suspect that deep down, he understood this.
The Imperial Japanese Army didn't make it because the Imperial Indian Army held them back at Kohima and Imphal. The Japanese were not viewed as friends by most indians -- even the INA formed by Bose was made up of POWs mostly and never exceeded 43,000 in strength (hey, if you had a choice of living like "Bridge on the River Kwai" and as a soldier in roughly decent surrounding and getting food, most would choose the latter)