General counsel and legal teams have an important role to play in preventing greenwashing and need to consider the spirit of the law along with the technicalities, Australia's investment regulator said.