If the one who is guilty deserves to be beaten, the judge shall make them lie down and have them flogged in his presence with the number of lashes the crime deserves
NIV
Then if the guilty man deserves to be beaten, the judge shall cause him to lie down and be beaten in his presence with a certain number of stripes according to his offense.
AMP
And it shall be, if the wicked man be worthy to be beaten, that the judge shall cause him to lie down, and to be beaten before his face, according to his fault, by a certain number.
KJV
But the judge must not impose more than forty lashes. If the guilty party is flogged more than that, your Israelite neighbor will be degraded in your eyes.
NIV
Forty stripes may be given him but not more, lest, if he should be beaten with many stripes, your brother should [be treated like a beast and] seem low and worthless to you.
AMP
Forty stripes he may give him, and not exceed: lest, if he should exceed, and beat him above these with many stripes, then thy brother should seem vile unto thee.
KJV