The phenomenon where a ray of light doesn't enter the rarer medium and instead reflects back to the denser medium is known as
If the ray of light doesn't enter the rarer medium and if the angle of incidence is more than the critical angle then the light reflects back into the same medium. The critical angle is the angle of incidence beyond which rays of light undergo total internal reflection.