If a malicious user tries to spend their bitcoins to two different recipients at the same time, this is double spending.
Bitcoin mining and the blockchain are there to create a consensus on the network about which of the two transactions will confirm and be considered valid.