Can I travel in Schengen states until the last day of the validity on my D-visa/residence permit

I am a Chinese citizen working in Denmark. I have a Danish D-visa and temporary Danish residence permit valid until end of October, 2019. I am traveling to Iceland as a tourist in August 2019. I saw that Iceland requires that the validity of qualified visa-exempt passport/ID be at least three months beyond intended stay (

Does this requirement also apply to my Danish D-Visa/Danish residence permit?