Lightning is a protocol and there can theoretically be many disjoint networks. The biggest network is usually what's considered to be 'the' lightning network. Double spending, which would require 'settling' a superseded lightning transaction, is prevented by a penalty mechanism that makes it so the malicious party loses all the funds in their 'channel' when caught (which will be, at smallest, the amount the original payment was made for).
Lightning is a protocol and there can theoretically be many disjoint networks. The biggest network is usually what's considered to be 'the' lightning network. Double spending, which would require 'settling' a superseded lightning transaction, is prevented by a penalty mechanism that makes it so the malicious party loses all the funds in their 'channel' when caught (which will be, at smallest, the amount the original payment was made for).