well i would like to share my experience.I am a cabin crew for qatar airways.As far as i know if you have RP less than 3 months U can go anywhere as long as you have the visa of that particular country.

As far as UAE is concern i dont know abt these guys coz ive got visa on arrival even my RP was expiring in 2 months.but generally ABU DHABI IMMIGRATION IS pretty stiff but dubai allow u even less than 3 months Expiry.