walk after other gods
"serve other gods". Walking refers to obeying.
against you ... you will
These instances of "you" are plural.
I testify against you
"I warn you" or "I tell you in front of witnesses"
you will surely perish
"you will certainly die"