With the support of the consensus algorithm, the blockchain prevents double-spending. The consensus algorithm verifies the transaction’s authenticity before recording it in the block. As a result, it is checked by several nodes, allowing for double-spending.
However, since more than 50% of the network is owned by one entity, a 51% network attack will make any blockchain vulnerable to double-spending.