Unfortunately this isn’t possible. The impracticalities of transferring to and from terminals aside, you will need a boarding pass for T2 to enter.
Even if you did have this going back and forth is complicated and stressful. Your Ready To Fly status at T5 is compromised if you move around.
Not remotely worth it.