That just depends on the situation, some people prefer to pay lower Thai taxes and not high taxes in their home country, and depending on DTA and type of income there are possibilities
You may be right that Thailand does not track the money, but you are responsible to tell them, and tax fraud might be punished, all up to you if you want to take that risk.
money brought in by creditcard is also bringing in money. It does not need to be cash. And living in Thailand, not working in Thailand, and not bringing in money from outside looks quite suspicious, don't you think?
Visa and tax are unrelated to each other, when you are 180 days or more in total in a calendar year in Thailand, you will be considered tax resident, and might have to pay taxes depending on your situation, but not on your visa.
ATM from foreign account is bringing in money, taking cash with you is bringing in money. How well everything can be checked is another story, but be aware that you are supposed to live from something, so you should tell you bring in some money when you are tax resident and have no Thai job.