There are a few important laws that apply to foreigners working in other countries. For example, you must comply with all local tax laws and regulations, as well as any safety and health requirements that may apply. You should also be aware of any social security rules that may apply, as well as any restrictions on hiring foreign workers.
If you have any further questions about the working law of a specific country, please contact an immigration lawyer or your local embassy or consulate. They will be able to provide you with more detailed information about the legalities involved in working in that country.