Are High-redshift Galaxies Hot? Temperature of z > 5 Galaxies and Implications for Their Dust Properties