For an odd positive integer $n \gt 1$, let $S$ be the set of integers $x$, $1 \le x \le n$, such that both $x$ and $x+1$ are relatively prime to $n$. Show that $$\prod_{x\in S} x \equiv 1 \pmod n$$
I know there is already a solution on this site here but I don't understand the solution fully and the thread was created over 3 years ago so that is why I decided to create a new thread. Can anyone retranslate the solution presented in the linked thread. On my approach I thought of using $CRT$ but I couldn' t solve the problem using it, so if you know solution that involves $CRT$ please post it.
Any help appreciated.