Explain the legal implications of attempting to murder as outlined in Indian Penal Code (IPC 1860) Section 307: Attempt to murder and their relevant Bharatiya Nyaya Sanhita 2023 (BNS 2023) code reference.

{'IPC Section': '307', 'IPC Heading': 'Attempt to murder', 'IPC Descriptions': " Indian Penal Code, 1860 
307. Attempt to murder
Whoever does any act with such intention or knowledge, and under
such circumstances that, if he by that act caused death, he would be guilty or
murder, shall be punished with imprisonment of either description for a term
which may extend to ten years, and shall also be liable to fine; and if hurt is
caused to any person by such act, the offender shall be liable either to
104[imprisonment for life], or to such punishment as is here in before
mentioned.
Attempts by life convicts 120[When any person
offending under this section is under sentence of 104[imprisonment
for life], he may, if hurt is caused, be punished with death.]
Illustrations
(a) A shoots at Z with intention to kill him, under such
circumstances that, if death ensued. A would be guilty of murder. A is liable
to punishment under this section.
(b) A, with the intention of causing the death of a child of
tender years, exposes it in a desert place. A has committed the offence defined
by this section, though the death of the child does not ensure.
(c) A, intending to murder Z, buys a gun and loads it. A has not
yet committed the offence. A fires the gun at Z. He has committed the offence
defined in this section, and if by such firing, he wounds Z, he is liable to
the punishment provided by the latter part of 150[the first
paragraph of] this section.
(d) A, intending to murder Z by poison, purchases poison and
mixes the same with food which remains in A's keeping; A has not yet committed
the offence defined in this section. A places the food on Z's table or delivers
it to Z's servant to place it on Z's table. A has committed the offence defined
in this section.", 'BNS Section': '109', 'BNS Heading': 'Attempt to murder', 'BNS description': "The Bharatiya Nyaya Sanhita, 2023
109. Attempt to murder.
(1) Whoever does any act with such intention or knowledge, and under such circumstances that, if he by that act caused death, he would be guilty of murder, shall be punished with imprisonment of either description for a term which may extend to ten years, and shall also be liable to fine; and if hurt is caused to any person by such act, the offender shall be liable either to imprisonment for life, or to such punishment as is hereinbefore mentioned.
(2) When any person offending under subsection (1) is under sentence of imprisonment for life, he may, if hurt is caused, be punished with death or with imprisonment for life, which shall mean the remainder of that person's natural life.
Illustrations.
(a) A shoots at Z with intention to kill him, under such circumstances that, if death ensued, A would be guilty of murder. A is liable to punishment under this section.
(b) A, with the intention of causing the death of a child of tender years, exposes it in a desert place. A has committed the offence defined by this section, though the death of the child does not ensue.
(c) A, intending to murder Z, buys a gun and loads it. A has not yet committed the offence. A fires the gun at Z. He has committed the offence defined in this section, and, if by such firing he wounds Z, he is liable to the punishment provided by the latter part of subsection (1).
(d) A, intending to murder Z by poison, purchases poison and mixes the same with food which remains in A's keeping; A has not yet committed the offence defined in this section. A places the food on Z's table or delivers it to Z's servants to place it on Z's table. A has committed the offence defined in this section."}