The basic point in "management accounting" (a term many "proper" accountants utter while spitting

) is that a company can be solvent but not have enough cash.
A pretty common scenario.
Such a company is vulnerable because a supplier can (in general terms) get a winding up petition, or simply a CCJ.
But the company is still solvent, so this way of trading is not illegal.