Would this be treated the same way?
Are you essentially asking if bitcoin has ownership?
I would assume that using someone else's credentials (wallet private key) without permission to make changes to a system (the bitcoin blockchain) is in itself illegal, yes.
IANAL.