prevent Die from being set to invalid values