Well yes, that is also illegal in those circumstances - and rightly so.
I’m sorry but this sort of crap really undermines legitimate criticism of government overreach. You can’t have the only terrorism related charge being “blew someone up with a bomb” if you want to actually, you know, stop that happening.