(Yes, if AU is your destination, duty free is deliver to the gate, so you need to purchase it 90(?) minutes before flight time.)
Five hours is effectively four hours I suppose, so if you did not want to enter Singapore, you could visit the butterfly garden and orchid garden, take the skytrain...