Hi there I'm just looking for some help understanding the function of a private key. I understand that there are wallet backups and private keys.
Correct.
If you have a private key to an address then you basically have authority to spend those bitcoins as far as I understand.
Correct.
Now let's say you lose the device with the wallet containing your coins and somebody else gets access to it and they transfer the coins to another wallet, are they gone forever even if you have backed up your private keys?
Yes.
As I understand it the private keys would allow you to recover coins but only so long as those coins haven't been spent already correct?
Correct.
So in effect the private keys are a recovery tool to a lost/damaged wallet but not necessarily an anti-theft tool since the coins can still be spent if somebody physically had access to the wallet before you were able to create a new wallet/address with your key backups.
Correct.
Am I understanding this correctly?
Yes.