The people that keep saying don't go into the tech space, are already in it, have taken their pound of flesh or are currently taking more of it.
They don't want people coming in creating more competition and innovation. fukk em. Do what you want.
TO be a coder requires a lot of mental aptitude and abilities. Technology is always evolving and innovating. People are always pushing the boundaries into new discoveries. AI is a tool that will only aid in the discovery. The day when quantum computing and true AI will be accessible to consumers, will be the day you will have people who know how to use it and create shyt, and the people who don't and will get left behind.
If you want to learn a trade, learn a trade. But there's a ton of plumbers and electricians. There are tons of construction workers that are barely scraping by. There's always going to be competition in whatever field you try to get into.