King James Version (KJV)
With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself unsavoury. {shew thyself unsavoury: or, wrestle}
Modern English
With the pure you will show yourself pure. With the crooked you will show yourself shrewd.
Hebrew
עִם־נָבָ֖ר תִּתָּבָ֑ר וְעִם־עִקֵּ֖שׁ תִּתַּפָּֽל׃
ʿim-nabar titabar vʿim-ʿiqesh titapal