That's a bold statement, as if the whole world invests in tourism because they don't know better.
Spain's tourism sector represents a double-digit chunk of their GDP and is one of the rare sectors which has a direct effect in reducing unemployment, specially in the low-skilled, NEET cohort which is extremely problematic in countries such as Spain. Claiming that a country like Spain could simply annihilate it and replace it with something else is an extraordinary thing to say, specially as it lacks any support.
I’m not saying it’s a good idea to ban it. But tourism is anything but essential.
Sure the Spanish economy benefits from it right now but over reliance on it, as I explained above, can be a bad thing.