Is it illegal for employees to produce and sell products?

A company that meets one of the following conditions is illegal:

First, the product is developed by the company for employees, providing the conditions needed for development. In other words, the result of completing the work.

Second, the company has applied for a patent for this product.

Third, employees will transfer the patents of developed products to the company. Unauthorized use.

Employees who meet the following conditions are not illegal:

First, employees get the patent right alone.

Second, the products developed by employees are not within their responsibilities.