You need to be careful with your definition of "between x1 and x2" for the discrete case. The following is true for any discrete or continuous distribution:
for most* continuous variables, its true that
and so you can say
for those cases
*some continuous variables are on a mixed distribution has a probability mass at a fixed point, so the last part may not work for those.