Muscat could have been Dubai if they had developed their port. I don't think Dubai is in a worse place than Muscat in the long term.
The reason people see Dubai going down is the same reason people saw it go up - ambitious/optimistic development by the 'socialistic' ruler.