Enforce value ranges.