Check condition which from must always less than to.