Ensures this duration is at most max.
max
Duration coerceAtMost(Duration max) => this > max ? max : this;