TIR causes a portion of the light to refract along the boundary and the rest to be reflected. When TIR occurs, the reflected light follows the law of reflection. If TIR occurs at the boundary of water and air, then the light must be within water and heading towards the boundary with air. If TIR occurs at the boundary of glass and air, then it is possible that the light is traveling within air and heading towards the glass. This is the second condition.
Reflection always follows the law of reflection.
The angle of incidence equals the angle of reflection. TIR can only take place if the light is incident within the more dense of the two medium - in this case, water. TIR would only take place at this boundary if the light was in the glass and heading towards the boundary with air.