The Buddha describes some of the wrong views on attaining purity as well as the the state of an Arahant in these verses.

Suddhaṭṭhaka sutta - Pure

I see the pure, the supreme, the free from disease, Through such vision, a person achieves complete purity; Directly knowing and understanding this as the ultimate, He continues to observe this purity, from which profound insight arises.
If through seeing, purity arises in a person, Or through insight, he abandons suffering; Though seemingly cleansed, he remains attached, His assertions reveal such views.
A true Brahmin does not claim purity from another, Neither through what is seen, nor heard, nor through virtue, nor silence; Unsullied by deeds regarded as meritorious or sinful, He relinquishes what he had grasped, refraining from concocting anew.
Letting go of the former, yet longing for the next, Driven by impulse, they fail to transcend attachment; Grasping and releasing repeatedly, Like a monkey swinging from branch to branch.
A being, adopting precepts on their own, Experiences highs and lows, fettered by perceptions; One who is wise, having realized the Dhamma, Remains unshaken, untouched by such highs and lows.
He stands apart from all phenomena, Unaffected by what is seen, heard, or conceived; Naturally embodying this as he wanders openly, Who in this world could possibly define him?
They neither speculate nor do they prioritize, Nor do they proclaim themselves as absolutely pure; Untying the knot of grasping, They harbor no longings anywhere in the world.
For such a Brahmin, no boundaries exist, whether knowing or seeing, they hold to nothing; Neither passionate for sense-desires nor attached to dispassion itself, They hold on to nothing as the ultimate truth.