Probably about the same danger involved as someone copy pasting random commands from a google search when they understand nothing about the commands they run.
I do dislike advice that boils down to “make ai do it lol”, especially if the solution is just a few commands.