Australia has rebuked Iran over escalating attacks in the Strait of Hormuz and delivered a stark warning amid global energy shocks.