The commentary to the Netti pakarana has a section on the 38 vancakkha dhammas- the cheating dhammas.
For example on of them is related to renunciation: one moves to a secluded place, gives up meeting with people and feels this is because they are developing renunciation. It is just as likely to be done out of subtle aversion to the problems that come with society. On the othe rhand one stays in society and feels that one is doing this through equanimity or metta- but doesn't see the attachment to sensuality that is really motivating the behavior..
And practically every real right action in the spiritual realm has its not always obvious cheating counterpart (vangakkha). If there is no genuine awareness one might be 'cheated ' by these fakes for a lifetime.
there is a parami called sacca, truthfulness that is woefully underdeveloped in most of us. So we are always quick to cling to anything that looks like progress and exaggerate it in our own mind.
How does one become aware and counter these vangakkha dhammas if they are so subtle as to be easily mistaken for kusala dhammas?
basically , in my opinion , as soon As there is the merest hint or feeling of having Kusala we can be sure that attachment is blossoming and delusion is flowing.
so how to have kusala without clinging? no easy way, other than by really revering the teachings i think so that they become our teacher rather than tricky aspects of lobha which we take for insight.