Hi there, depending on which side of the fence you stand it is either a black and white issue or a very grey issue.
The law of the land is clear, no "co-habitation" outside of marriage. This is strictly enforced among the local Muslim population; although the penalties are harsh for both Muslims and non-Muslims caught contravening the law in this regard.
The practicalities are... There are more expats than UAE nationals, while the law of the land applies to everyone living here; there is an unwritten aspect of "latitude" with regards to expats and certain of the laws.
There are literally tens of thousands of people doing exactly this. The police will only follow up if they receive a complaint in this regard, and then they have to do something and will and will normally pay you a visit.
The main thing is, if you are going to do it, then be prepared to accept the consequences; don’t draw attention to your self, your situation or embarrass your neighbours by you actions.