This is better achieved through a microflow. In entity validation rules (to my knowledge) you can only compare to same-object attributes and specific values.
We usually do all our validations in microflows. They are more visible than page validations and they are more flexible and traceable than both entity validation rules and page validations.