How to write constraint(s) to specify range on an activity input parameter?

This sounds like it should be simple to do (it certainly ought to be) -- and maybe it is -- but I have not found a good example of this.

Activity A1 has an input parameter p1, of type Integer or Real (in SysML). How can we write a constraint to capture the allowed input range for this parameter?

The solution should be semantically correct, that is, compliant with SysML and whatever constraint definition language one uses. Ideally it would be evaluated by the Cameo Simulation Tool as well.

(Note: In a previous question I noted that the BasicInterval option is not available here.)