The Fremen in the books were the finest soldiers in the galaxy. And Baron Harkonnen in the book (and the films) fucked up big time, by being completely unaware of their numbers or their quality.
I am reminded of Putin's expectation of a 3 day special military operation in Ukraine. Baron Harkonnen's intelligence fuckup was arguably even worse.