Wow. What astounding arrogance. Just a few decades ago, in the 1970s, India's GDP per capita was higher than China's. According to your logic, China shouldn't have invested in its military either, because it had legions of starving people living in filthy conditions, not to mention that China also had to deal with the aftermath of the Cultural "Revolution" and the "Great Leap Forward".
Keep your sermons to yourself, India knows how to defend herself, and Indians will do all that is needful to ensure adequate defence. We don't need "advice" from brainwashed Chinese who think that only their civilization is supreme and is destined to rule the world.
And then you wonder why Indians have a problem with China's attitude.