You can definitely make your local node do that though the security comes from the fact that you can't make the network accept the partition you created unless you own 50% of the market cap from their perspective, not the perspective of your local node.
If you tried to spend from a double spend you forced your local node in to, everyone else sees it as invalid.
How do they tell the difference between my fork and their fork?