You should read a treaty, especially article 4. The treaty takes precedence over domestic law.
Most high-tax countries tax the worldwide income of tax residents, but only the local income of non-residents.
Say you own a Malta company that has proper substance in Malta. This company pays you in dividends.
You are tax resident in Georgia as a HNWI where you can receive the dividends from the Malta company tax free. Now your home country claims that you still meet their rules for tax residency (for example, access to an apartment all year), so they consider you tax resident as well and say you should pay tax there on your worldwide income, including the dividends from Malta.
If there is a tax treaty between Georgia and your home country, it will usually define tie-breakers, for example that you should be considered tax resident where you have your habitual abode/closer ties. If you can prove that you spend 300 days per year in Georgia, that you have friends and a partner there, an apartment, your life in in Georgia - then they should leave you alone. (The article on taxation of dividends will usually say that dividends can only be taxed in your country of tax residency, unless there is a permanent establishment in the other country.) Even if, for example, your home country considers all residents also tax residents and they claim/can prove that you still have access to an apartment in your home country.
Now consider the same case with Panama: Like Georgia, Panama doesn’t tax foreign-sourced income. But Panama has signed very few tax treaties. You can spend 300 days per year in Panama, all your life can be there. But if your home country can show that you still meet the domestic rules (access to an apartment for example), then they can still ALSO consider you tax resident, and then they can still tax your worldwide income, even if your habitual abode is clearly not in your home country.
That’s why tax treaties are so important. Of course if you don’t meet the domestic tax residency rules of any country, it doesn’t matter very much.