private static void validateMinMaxProperty(
            long min,
            long max,
            Object value,
            Field field,
            List<String> errorMessages) {
        if (!(value instanceof Number number)) {
            throw new IllegalArgumentException(
                    "The value of the field ("
                            + ClassUtil.getReference(field)
                            + ") must be a number for min and max validation");
        }
        long val = number.longValue();
        if (min > val) {
            String message = "The property \""
                    + field.getName()
                    + "\" must be greater than or equal to "
                    + min;
            errorMessages.add(message);
        }
        if (max < val) {
            String message = "The property \""
                    + field.getName()
                    + "\" must be less than or equal to "
                    + max;
            errorMessages.add(message);
        }
    }
@implNote We don't use "hibernate-validator" because it has a terrible performance
turms-server-common/src/main/java/im/turms/server/common/infra/property/TurmsPropertiesValidator.java