Can a country impose working conditions for the welfare of its own country, even if these are below what is considered acceptable?

Can a country impose working conditions for the welfare of its own country, even if these are below what is considered acceptable?

Indicate what is the main objective of the labor legislation. What guarantees labor legislation? What is the origin of labor legislation? Do you think it is absolutely necessary that an organization external to a country have to intervene to regulate this matter?