The Meditator tests his belief that he can know mathematical principles for certain by coming up with these even more radical thought experiments. The “malicious demon” hypothesis has deeply influenced philosophers for centuries—it’s the foundation for the “brain in a vat” thought experiment commonly used today, as well as for popular stories like the movie
The Matrix. Again, the Meditator isn’t seriously arguing that squares don’t have four sides or that God doesn’t exist. Rather, he’s looking for any reason he can find to distrust these basic truths, and then he suspends belief in them in order to find a more certain foundation for his knowledge.