Australians have been warned to leave parts of the Middle East as tensions between the United States and Iran continue to rise.