There are two problems. The first problem is that you are trying to specify the data type in the annotation attribute. You also do not need to specify a data type or fraction, this annotation contains only integers.
, , , BigDecimal double. BigDecimal doubleValue(), double.
@Range(min = 0, max = 10)
private BigDecimal score;