The problem is that most likely you will not be allowed to board the first flight because the first carrier will view your final destination as the country (in your exampleJapan) where you don't fulfill entry requirements and the carrier is not allowed to let you board. To the first carrier your onward ticket with another carrier is immaterial. Traveling on separate tickets is currently not advisable