public static void before(
            @Nullable Date startDate,
            @Nullable Date endDate,
            String startDateName,
            String endDateName) {
        if (startDate != null && endDate != null && endDate.before(startDate)) {
            throw ResponseException.get(ResponseStatusCode.ILLEGAL_ARGUMENT,
                    ("\""
                            + endDateName
                            + "\" must not be before \""
                            + startDateName
                            + "\"").intern());
        }
    }
@param min if -1, it means the string cannot be null
turms-server-common/src/main/java/im/turms/server/common/infra/validation/Validator.java