Your scenario as described is unethical, and a virtuous investor would have topped up those delinquent payments with some premium since those employees essentially funded the company with financing. In a bk, you also have access (I won’t explain this) to debtor in possession financing which is super senior to everything except basically tax liens iirc, and if there’s a working capital deficit like the wages mentioned in your case, those can be resolved.
The courts are very very strict on the bright line on pre and post petition spend and liabilities and shenanigans aren’t really tolerated. Also, the “zone of insolvency” brings significant liability to officers and directors of the company, and D&O insurance won’t always protect you against risk of this magnitude, so it’s best to steer far far away from unseemly behavior in any liquidity constrained situation. Those refs bite, and they bite hard.
Sorry you had to go through that.