You cannot specify a range for the most advanced data type. If the type is used for a table field, you can add code to the insert and update methods of the table to check the value whenever the record is updated. However, this approach may have a cost in terms of performance.
You can also simply add code to the validateWrite method of the table if you are satisfied with the validation that takes place only after changing the value from the user interface.
source share