That the law might work in one case doesn't justify it as a good law - the law should consider at least some of the edge cases, especially if it's going to negatively impact such a large class of workers as the "professional class".
It's also unclear that there's no scenario in which the non "professional class" would benefit from being able to be texted by their boss.