A criminal lawyer who has represented a string of clients charged with terrorism offences says comments the Prime Minister made in Parliament this week could poison a jury against two men accused of planning an attack.

One of two men at the centre of an alleged Sydney terrorist plot recorded a video in front of an Islamic State flag just 20 minutes before heavily armed officers stormed the pair's makeshift home, police say.