Heat is conducted in the direction of decreasing temperature, and the temperature gradient becomes negative when temperature decreases with increasing x. The negative sign in the equation ensures that heat transfer in the positive x direction is a positive quantity.