Earlier quoted context omitted.
Say that you're using PTO?
Lie to immigration? People in this thread are insane. Going to get yourselves banned from counties.
Somewhere like Brazil/Paraguay/Mexico/Philippines/Iraq no one is gonna ask you if you worked remotely while on your way out. No one. Half the time they don't even bother to ask what you're doing while entering, they just stamp your passport and you're on your way. Japan may be different, but there is no way they're gonna deport you on your way out.