Light travels faster in an optically rarer medium.
Total Internal reflection happens only when light is travelling from an optically denser medium to an optically rarer medium.
What happens to a ray of light when it travels obliquely from an optically denser to an optically rarer medium?