> Depending on the country, it might be more difficult to renew it after it has expired than shortly before.
Or it might make no difference whatsoever.
I renewed both my passport and my "origin" ID card ~6 months after they expired, through the consulate (though both my country of origin and my country of residence are in the EU). There was no issue whatsoever renewing them (I did cut it a bit short as I realised my passport was expired 2 weeks before leaving the EU for holidays, but the passport took under a week to renew and reach the consulate).
Or it might make no difference whatsoever.
I renewed both my passport and my "origin" ID card ~6 months after they expired, through the consulate (though both my country of origin and my country of residence are in the EU). There was no issue whatsoever renewing them (I did cut it a bit short as I realised my passport was expired 2 weeks before leaving the EU for holidays, but the passport took under a week to renew and reach the consulate).