While they were claiming to be wise, they made fools of themselves.
Professing themselves to be wise, they became fools,
Claiming to be wise, they became fools [professing to be smart, they made simpletons of themselves].
For, while proclaiming themselves to be wise, they became foolish.
For professing themselves to be wise, they became fools.