It seems like a pretty arbitrary distinction these days, much like being a "professional".
Ultimately all jobs are subject to supply and demand driven and SWE's world is getting rocked by 3 sharp turning points at once - a trillion bootcamp "just learn to code" people entered the market leading to oversupply, ZIRP ended cutting demand and AI turns out to be good at code creating a substitution effect.
That's one hell of a storm that inevitably is going to lead to some shipwrecks