The way either uses that word will change the answer to the first question.
For example, I do not consider 0 to be between 0 & 40.
It is clear that 5 is between 0 & 40, but 40 is not.
However, I have seen people who do disagree with me.
I know in test prep writing one uses the pharse ‘from 0 to 40’ if we intend inclusion.