The Israel Defense Forces' detention of a 5-year-old Palestinian boy in Hebron earlier this month was a legitimate step in order to “thwart the threat posed by the activities of a minor,” the IDF’s legal adviser in the West Bank has ruled.