@Feynman_00 it's the definition of the adjoint always but for unbounded operators it can happen that the domain of $A$ is not equal to the domain of $A^\dagger$ (see e.g.
physics.stackexchange.com/q/644579/50583). The domain subtlety is that an operator is only
self-adjoint when it's equal to its adjoint
and the domains of itself and its adjoint are the same (otherwise it's only symmetric)