Just grow till tech lead level where nobody does code review on your work and it won't be fireable action anymore.
Ok, now serious answer. However, let me tell you that it is illegal action and no matter what, sooner or later you might have serious problems up to criminal prosecution.
Never did it and never seen someone in the team doing it.
Talking about examples or excuses "you did it for testing", is not an option either. If you want to test something or login as other user, make sure you can do it only when you logged in and have kinda is_admin=1 in your account, in other words, it's not a backdoor, but a future for any admin or developer account, moreover, it is good to be also protected by IP/2FA.