Sometimes after automated retopo of organic meshes you can find self-intersecting quad faces. Antiparallelogram - Wikipedia - good wiki example.
Its really hard to manually search and fix such sort of faces, especially on heavy meshes.
Internal software fixing tools doesn’t works (Maya, Blender, 3dsMax), at least I didn’t find any working tool.
for each quad in mesh:
for each other quad within a distance threshold:
get dot products of each (vertex in 2nd quad) and normal of first quad
if all dot products arent either all pos or all neg, then theres a potential intersection