What's "can't be serious" mean here?

Native speaker’s answer
Rebecca
"You can't be serious" is an informal expression used when one wants to express surprise or disbelief at a situation, that they have a hard time believing or accepting something. Ex: You're pregnant!? You can't be serious. Ex: You can't be serious. How could she do something like that?