It's not really safe to continue playing with those temps. The stock cooler probably won't be adequate if you have a 40 degree celsius ambient temperature. If you can't get your computer running in a room with air conditioning then you'll need to look at an aftermarket CPU cooler.