This question already has an answer here:
How did Neo know that the "reality" Morpheus told him was the real world was not actually just another simulated reality? I mean if he believed Morpheus' explanation on simulation isnt it logical for him to assume that the real world was also simulated. Wouldnt it be the perfect prison designed by the machines. Design the prison world and a world for those who think they have escaped.