The value clamped into [min, max], or fallback if it was not a number.
Description
Clamp a number into a range. Anything that is not a number comes back as the fallback rather
than as NaN, so it is safe to pass unvalidated input straight in.
Note: the bounds are given max-first.
trim