Just guessing. They both like/love each other in their own twisted way. They think they are not complete without the other. Ah In who doesn't value his own life and Ilmo who doesn't value the lives of others. Ilmo doesn't condemn Ah In as a wh*** and gives him everything he's always wanted (guidance) so that Ah In wants to continue living. Ah In gives Ilmo confirmation that he is needed and it doesn't matter if he makes a mistake (murder), he doesn't condemn Ilmo as a monster.
basically they planned everything mostly ilmo, he manipulated red hair to make him go to the shore and make those police and detectives think that red hair, seo ilmo, and ah in were together in the boat. Seo ilmo knock him out and put him at the box right at his back, and he also put the gun besides red hair to manipulate him into doing all that just to make his escape. He knows that ah in is having a second thought. So he makes the detectives believe that he died and red hair is the one who jump at the sea and escape, so they will come searching for red hair instead of him because they think he's already dead.