The general first-order difference equation has the form $$ x_{n+1}= a_n x_n + g_n, \quad n\geq 0, \tag 1 $$ where $(a_n)_{n\in \mathbb N_0}$ and $(g_n)_{n\in \mathbb N_0}$ are given sequences. The solution is given by $$ x_n = x_0 \prod_{k=0}^{n-1} a_k + \sum_{k=0}^{n-1}g_k \prod_{i=k+1}^{n-1}a_i $$ where we used \begin{align} \prod_{n}^{n-1} = 1 \tag 2 \\ \sum_{k=j+1}^{j}=0 \tag 3 \end{align}
I don't follow $(2)$ and $(3)$, isn't \begin{align} \prod_{n}^{n-1}1 = n \cdot (n-1) \quad ?\tag 4 \end{align} And \begin{align} \sum_{k=j+1}^{j}1= j \quad ?\tag 5 \end{align}
There are inconsistencies in your question statement.
In the first place, the author does specify that in case of reversed bounds you get a $0$ sum or a $1$ product. If he gives you his conventions $(2)/(3)$, you should not question them.
Then if you reject the convention and consider that reversed ranges are not equivalent to empty, you should write
$$\prod_{\color{green}{k=}n}^{n-1}1 = 1\cdot1=1 \quad \tag 4$$
and
$$\sum_{k=j+1}^{j}1= 1+1=2\tag 5.$$ [In green, my own addition.]