Are you asking about your CCSA certification? Which exam are you talking about (for 31st August)?
If you are referring to your CCSA certification then the exam would need to be the CCSE exam (or CCSA exam again).
Passing the CCME exam does not extend the CCSA certification (see quoted text above).
Passing the CCME exam would only extend a valid CCSE, CCSM or CCSM E certification.
Passing the CCSE exam with a valid CCSA certification will award you the CCSE certification, valid for two years from the date of passing the exam (valid to 30 August 2027).
I would not plan to attempt an exam on the day of the expiry of the certification. There are a number of risks that are not worth taking IMO.
First, your certification expires the next day (if not on 30th August midnight) if you do not pass the next certification exam (CCSE).
Secondly, if you don't book the exam in time and there are no slots available, or you miss the exam because of an emergency or illness, then you are in a bit of a fix, and you would have to appeal to the Certification team at Check Point, if that is even possible (after the fact).
Note that there are 4 Certifications (CCSA, CCSE, CCSM and CCSM E) and 9 Infinity Specialist Accreditations..
ISA exams aware Accreditations (Infinity Specialist Accreditations).
See the SK for the fill list: https://support.checkpoint.com/results/sk/sk163417