yes it can be dangerous, if you try, have water near you and have salt to avoid hyponatremia, read up on electro deficiencies, practice nose breathing, if you are getting very dizzy and your body is telling you stop, do that.
It depends on how much you’ve built up in experience and your body tolerances. I’ve fasted in almost 100 degree Fahrenheit weather for over a week and been fine. Most people I think would struggle because the heat is what gets to you. I’d you’re concerned, consider making it a short fast or water fasting instead. No need to go into it afraid