At the risk of starting a style debate, this may be easier to read if you write it like an if-else:
a > max ? max :
a < min ? min :
a a > max ? max :
a < min ? min :
a