Properties in parts of The Shire of Gingin are under threat with residents ordered to evacuate, as firefighters battle a bushfire north of Perth.