The Apostle speaks on how and when to whip grievous sinners:
DEUTERONOMY 25
A maximum of forty lashes is proscribed for evil doing, and a fair and honest judgment must be rendered. Consider the Saudi and Iranian and Pakistani courts which even today hand out lashes up to and more than 100.
1 If there be a controversy between men, and they come unto judgment, that the judges may judge them; then they shall justify the righteous, and condemn the wicked. 2 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. 3 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.