That sounds like the worst of both worlds! A codified two tier underclass. With one part in an unemplyed malaise, angry at having no purpose, and blind to the benefits they recieve. The other part an exploited class with no rights or benefits.
As others have pointed out already, this is already true today: We use undocumented-workers, recent immigrants who don’t know better, and prison labor.
Recently, prison labor use has been on the rise.
Maybe losing UBI for N months could be a new standard punishment for certain crimes or a condition for parole. We'll let you out of prison early for good behavior, but no UBI for 2 years, forcing you to take those jobs no one else wants.
For example, I feel that certain high financial crimes are better served by percentage of net-worth, rather than exact dollar-figures.
Otherwise it’s a fixed cost of doing business.