A bushfire is heading towards a north Queensland town after burning for days and destroying a home, prompting a "prepare to leave" warning.