Pregnant with IUD

I'm considering the mirena IUD. But how would you know if you got pregnant using it? I mean, you don't get periods with it...if you did get pregnant would you take it out or leave it in? Is it a high risk pregnancy