Setting up a company to shield one's assets is perfectly lawful. In fact, many entities out there exist for this very purpose. However, to accomplish it, one must follow certain rules. Simply filing the paperwork is not sufficient. The intent is not important. Either the entity is properly setup and run and shields personal assets, or it's not.