Never mind the agency issues, buying in Dubai can be a problem. I would not consider it for a long term investment - especially if the property is not new. Building standards and maintenance are not always up to the mark. And in multi-storey buildings you've got the hassles of common area maintenance, etc etc.
If it was my money, I'd rent in Dubai and buy elsewhere. Where you can live legally without visa hassles.