Ticking "Include all templates and transcluded pages" when doing an import should require some kind of confirmation. People have done this accidentally from time to time (most recently https://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard#Cleanup_for_an_import_booboo), and it is a complete pain to undo.
Ideally it would list the pages you are going to import, and say "are you sure you want to import these pages" before continuing.