Pruning or thinning plants in high heat exposes the remaining healthy parts to the sun, making them more vulnerable to injury, losing leaves and flowers.
As tempting as it is to remove dead leaves, they're protecting the healthier portions of the plant. Dying leaves still go through photosynthesis and can be useful.