Moses is giving a command to the people of Israel.
# you will not turn aside to the right hand or to the left
This compares a person disobeying God to a person turning off of the correct path. AT: "you will not disobey him in any way" or "you will do everything he says" (See: [[rc://en/ta/man/translate/figs-metaphor]])