Sounds like you need to go back and read the conditions of your visa. It is always important to know exactly what visa you have, the conditions, and the requirements for extending it. If you are planning to get the 2nd 5 years, while inside Thailand, you better get organised very soon. But by the sounds of it, you were not anticipating the 2nd 5 year application, so head back home and get another 5 years.
โทมัส ทอม เฟรย์ You can stay in Thailand for 360 days at a time, cross a border and come back, and stay for another 360. You can keep doing this until the end of the visa.