Firefighters in Western Australia are battling two blazes which are threatening lives and homes in Perth's east and the state's south west.