Living group is an important concept in go. Living group is safe against any play by the opponent. At the end of the game, all group should be able to defend themselves.
White cannot play to A, because white stone would not have liberties. Also white cannot play to B, because again white stone would not have liberties. So white cannot start killing at all.