in pari delicto potior est conditio possidentis
Where both parties are equally in the wrong, the position of the possessor is the best.