Make sure the incoming rating isn't higher than what is allowed

This is to stop users from adding very high rating values to images, which happened to one of my websites today.
Not sure if this is how you want it written but you get the logic anyway.