It's actually quite clever game theory, you don't need to be honest, but if you try to cheat you will lose money.
So it's in your best interest to be honest.
So come again: who/what decide (i.e. judge), is cheating A who claims his last transaction to B is N+1, or B who claims the last transaction he received from A is N?