There is no limit set in stone but immigration officers don't like people using them as an alternative to a proper long term visa. You might just be fine but from March to August is quite a while. Also unrelated but make sure you have an onwards ticket to show vietnam before you board your flight back to Thailand for either the duration of your tourist visa, or duration of a visa exempt entry, they are very strict and won't let you board without showing proof.