I figure Lana is a master of the Xanatos gambit and long since planned for this eventuality too from before they even met.
I think the only real mystery for the audience is how Lana works out how to have sex with Elena first before Lana then goes on to outsmart her before she can even try to kill Lana.