Flow resistance in the transition from dense to dilute granular-fluid flows