there's no such thing as "max tourist stay". Whether your plan is feasible or not will lie solely at the discretion of the immigration officer upon your return to Thailand.
It may be or it may not be. It depends on the immigration officer who sees you and whether he or she thinks you're trying to live in Thailand on a visa exemption.