I think it would be legal but unethical -- unless you also then gave the employee substantial compensation for their time and opportunity cost.
Legality would be very jurisdiction dependent. It might be illegal in most developed Western countries, depending on the exact facts of the case. I suspect it wouldn't be illegal in China — unless the trick happened to hit a ranking Communist Party member.