Someone who knows the VC industry should chime in on this - but AFAIK, companies don't get all their money from investor at once.
It's possible to structure a deal where the company has to reach a series of milestones to unlock each additional tranche of funding, but this is less common.