[daliworks] enhance checking max valie