No, they don't think it's illegal; They just think it's immoral. Everyone should want to be tied down to a 9-5 full time job, for some crazy idea of middle-class "Stability". They fundamentally misattribute the death of the middle class on rise of the sharing economy, not the other way around; Nor as a function of the increasing automation, and by-the-by the increasing gap between the value of true knowledge-workers and automaton persons.
The author isn't blaming the sharing economy for the death of the middle class, but describing it as a symptom (and as a patchwork solution that doesn't actually solve any problem -having to work more for subsistency isn't going to restore your quality of life, it's just going to knock you a level down Maslow's pyramid of needs, and make you more miserable and actually less likely to cut it professionally in the long term).