Validation in a getter method

Normally when I use properties in my classes and have both getter and setter methods, I do all the validation checks inside the setter. On the other hand, what do I do if I want to restrict the end …