Further clarification required I believe.
If a non-Thai person enters as a tourist on a tourist visa they pay as a tourist.
If a non-Thai enters on a different visa or border pass they cannot be deemed to be a tourist so the 300 baht tourist fee should not be applied to a non-tourist.