In the quote shown below, they use the second approach, i.e the operator changes with time and not the state kets, making use of the unitary operator for infinitesimal translation. I understand that you can get the second to last step by ignoring the higher order terms of $d\mathbf x$ (if I'm not wrong), but I am unable to figure out how the commutation bracket leads to the final equation $(2.2.7)$.
In contrast, if we follow approach 2, we obtain
$$\begin{aligned}[b]|\alpha\rangle&\rightarrow|\alpha\rangle\\\mathbf x&\rightarrow\left(1+\frac{i\mathbf p\cdot d\mathbf x'}{\hbar}\right)\mathbf x\left(1-\frac{i\mathbf p\cdot d\mathbf x'}{\hbar}\right)\\&=\mathbf x+\left(\frac i{\hbar}\right)[\mathbf p\cdot d\mathbf x',\mathbf x]\\&=\mathbf x+d\mathbf x'\end{aligned}\tag{2.2.7}$$
We leave it as an exercise for the reader to show that both approaches lead to the same result for the expectation value of $\mathbf x$:
$$\langle\mathbf x\rangle\rightarrow\langle\mathbf x\rangle+\langle d\mathbf x'\rangle\tag{2.2.8}$$