Well running an investment firm into the ground is more legal than using deposited funds in an exchange to bail out an investment firm that is being run into the ground.
The difference is the plea deal.
Honestly I wasn't sure what you meant by adding "legally speaking". It seemed to imply there was some legal ruling that both companies were the same. Cause otherwise imho there is no difference "they ran both companies" and "they ran both companies as a matter of law".