Is it illegal for employees to work for the boss's subsidiary?

It is illegal for employees to work for the boss's subsidiary. It may be illegal for employees to use company resources and customer resources to cooperate with the boss's subsidiary within their own working hours and scope. This behavior may violate the labor contract and company regulations, damage the interests of the company, and may also constitute unfair competition and commercial fraud.