The biggest criticism I usually see of this narrative is that the British and the French may have also seen Thailand as a neutral buffer zone between their respective empires. By staying out of Thailand, they reduced the risk of conflict between them, supposedly.
I have no idea how valid this idea is, or how much of a factor it would have been, I'm not a historian.