> you'll do what your boss asks unless it's illegal or immoral.
As an employee your primary obligation is not to your boss, but to the owners of the company.
If your boss is ordering you to do something that is detrimental to the company, you should fix the situation. But not necessarily follow the orders of your boss.
This is a very common misconception, imo.