Finite sums and (commutative) products can be defined over finite sets of indices, not just over intervals of the integers. Since it is very common to rearrange the order of summation freely, this set approach is usually taken as the basis of defining the $\sum$ and $\prod$ operators, and
$\sum_{i=a}^bx_i$ and $\prod_{i=a}^bx_i$ are just interpreted as alternative ways of writing $\sum_{a\leq i\leq b}x_i$ (or more formally $\sum_{i\in\{\, k\in\Bbb Z\mid a\leq k\leq b\,\}}x_i$) respectively $\prod_{a\leq i\leq b}x_i$. It follows that it is legal to have $b<a$, in which case the sum or product is empty (and has value $0$ respectively $1$).
It is on the other hand useful to have a calculus of summations over intervals of integers, where it is legal to glue together intervals just like one can do for integrals. The only place where I have seen this described is in Concrete Mathematics, pages 48,49, where one defines the notation
$$
\sum\nolimits_a^bf(x)\delta x = \begin{cases}\sum_{x=a}^{b-1}f(x)&\text{when $a\leq b$}\\-\sum_{x=b}^{a-1}f(x)&\text{when $b\leq a$}\end{cases}
$$
(that case $a=b$ gives $0$, twice), so that in all cases
$$
\sum\nolimits_a^bf(x)\delta x = -\sum\nolimits_b^af(x)\delta x
\quad\text{and}\quad
\sum\nolimits_a^bf(x)\delta x + \sum\nolimits_b^cf(x)\delta x = \sum\nolimits_a^cf(x)\delta x.
$$