Bacteria aquires restriction endonuclease by horizontal transfer. The result would be -
Any bacteria is protected against its own RE by a companion enzyme, site-specific DNA methylase, which methylates the restriction sites recognised by that particular RE. If any bacteria acquire new RE by horizontal transfer, this RE will cleave bacterial DNA and kill bacteria.