Yes, keep on going. There is no limit other than an employee at an Embassy who decide no more abusing this type of visa or an Immigration Officer trying to do his work.
You might opt for the visa that fits your purpose of stay and get 1 year Extensions in Thailand to avoid the travel and harrasments at consulates or borders.
Get the retirement visa before you make your way into Thailand as that gives you 90 days of stay and relaxed time to sort out in 30 days the deposit for a 1 year Extension of Stay, rather than first running around to get a visa.
The best part of the Non Immigrant O visa or the Extension of Stay based on married with a Thai National is that you are married with a Thai National, as long as she is your fiance you can not use this type of visa as a fiance meens not your wedded partner in Thailand. No idea if this is different in your country.