Setting min and max value for custom property

Can a min and max value be set for a custom property and if so how?

Thanks in advance.

You can use an expression binding on the custom property to enforce min/max limits. For example, this expression enforces a min/max of 0/25, and if the value is outside of that range, it will set it to an appropriate closest value (0 if less than 0, 25 if greater than 25). This assumes your custom property is bound to a tag, you can replace those references with a component property as well.