1 verses of the Darby Bible have both "if" and "wickedly".
1 Samuel 12:25 But if ye do wickedly, ye shall perish, both ye and your king.
In other translations: KJV WEB ASV YLT Webster DRC Geneva