Using research to avoid creating crimes against humanity