Had the same problem with a neighbor kid's bike. The crank bolt was heavily greased. I wiped off as much grease as I could get off and applied a thread lock compound. It never came loose again. (I also had to replace the crank bolt because he had compromised the threads during one attempt to reinstall)