Are you sure we're reaching that point? The market has certainly cooled but tech jobs are still available. I do think that many new grads will have to adjust their expectations from high 6 figure jobs in FAANGs to normal-but-still-fine compensation in tier 3-4 companies.
I would also argue that it's hard to predict what the market looks like 4 years into the future. That's a reality people should acknowledge when they start a CS degree, etc.
Long story short - I would advise to not go into debt for a top tier CS degree, unless truly passionate.
I am fortunate enough to have been educated in Europe and without any student debt. I can switch careers, without needing to keep income at a level to pay living expenses and loans.
I would also argue that it's hard to predict what the market looks like 4 years into the future. That's a reality people should acknowledge when they start a CS degree, etc.