How do ICs limit short circuit current?
Here you see how it is done. If the temperature or current of the device becomes too high then the  base current of the driver transistor (most right) position will be restricted or even cut of completely. Of course this is a very simplified representation of a stabilizer but it shows what is done for the protection against overcurrent and overtemperature.