math.clamp
Clamp an integer to an inclusive range, refusing a range whose bounds are the wrong way round.
clamp in Python2 capabilities
clamp in Pythoncompare_money, min_money, max_money, clamp_money