not all prokarytoes can tolerate extreme temperatures
u have psychrophiles, psychrotrophs, mesophiles, thermophiles and hyperthermophiles
so theres a different ranges of temperatures that microbes can grow
thermophiles grow at optimal temperatures between 55-65 degrees and can do so because of its properties... they contain heat stable enzymes, heat stable proteins which have hydrophobic interiors, more hydrogen bonding and other noncovalent bonds to strengthen the structure, more resistanct amino acids.. like proline to make polypeptides less flexible, they have chaperone proteins that stabilize the proteins, the cell membrane is temperature stable- more saturated, more branched and higher molecular weight
psychrophiles have optimal temperature below 15 degrees ... they have high levels of unsaturated fatty acids in their cell membranes
yeah so they can tolerate these extreme temperatures because their machinary have adapted over a long time to these conditions and their proteins etc are more stable at these temperatures...