I think it's better to split these two checks rather than unifying them with an `&&` statement: this way, if anything ever goes wrong, you can tell which end of the expected interval has been violated.