Technically you have to leave to prevent overstay. You could overstay for four days, but, there is a risk, all be it a small one of being stopped before you exit the the country. A few days in laos or Malaysia would possibly be a nice side trip to circumnavigate this.