How do I clamp gameplay attributes?

i’ve got some code in the post gameplay effect call back in my attribute set… but its not really clamping it