Prior to travelling, ask your transportation company about its requirements related to passport validity, which may be more stringent than the country's entry rules.
This is why I said that if in doubt, best to renew as there are too many hoops to jump through with the lack of consistency in how this all works.