If I give over my wallet.dat file to another guy.
Then he and me can use from same wallet. First users can use balance at that usage time, right?
Then what happen if one user encrypt it?
Other user can't use? First person who do encryption wins? Because he only know password?
The two copies of the wallet file will operate independently... Any balance in the wallet will be spendable by either party.
There is no guarantee that the first to send a transaction will "win". It is possible the other person could send with a larger fee (while the first transaction is still unconfirmed) and be confirmed first, rendering the first (unconfirmed) transaction invalid.
Even if one person encrypts the wallet... The other copy of the file will remain unencrypted and usable without a password.
The only issue will be that if either user changes the password (or encrypts the wallet) then their copy of the wallet will generate a new seed and start generating different addresses from the other wallet.
So, if they create a new "receive" address or they create a new transaction that generates "change"... The address will only exist in their wallet. The other wallet will not have access to this address.
This is why users must create a new backup after they have enabled encryption and every time they change their password.
There can be situation like sell all wallet.dat to anothers.
Anyone who "buys" a wallet.dat from someone expecting to have exclusive access to the wallet is an idiot.