They would have lost users, but it would have been a fraction of what is happening now.
They first could have decided to restrict the API to certain licensed uses, which by itself would have forced a lot of apps to change how they do things. Reddit could also use the AI scrapers as a good reason. Then, they could have continued to do what they've been doing, make new features that don't work in third party apps to push people off.