I left creme fraiche out of fridge for 2 hours it turned bad
In most cases, you would have about 2 hours of time in the "danger zone" before the food should be considered irretrievably unsafe.... obviously this was not the case for you.  If the ambient temperature is especially high, or the product was close to turning anyway, you might get less time.