As current through the sense resistor increases the nMOS gate voltage (and hence drain current) decreases. The limit can be tuned by adjusting the voltage divider.
Note that to actually create this you need a good heatsink to transfer the heat dissipated by the mosfet under full current conduction.