AI can help with legal research, but be careful how you use it.