Pedophilia is an expression that emerged lately, as humans developed. Ancient time did not consider it a perversion. Legalizing pedophilia at our time is a crime, but Islamic sharea does not consider it a crime so long that our clerics go back to their ancient books.