The log rank test can be understood as a score test for a simplified Cox proportional hazards model. The proportional hazards model assumes that the hazards are proportional (shocking, but true). If the Kaplan-Meier curves cross, that implies the hazards are not proportional. In that case, you can fit an extended Cox proportional hazards model. That means that you fit the model with an interaction between your covariates and time, and use a counting process formulation. Then you can test the model as you like. You can find a tutorial on doing this in SAS and R here:
- Thomas, L., & Reyes, E. (2014). Tutorial: Survival Estimation for Cox Regression Models with Time-Varying Coefficients Using SAS and R. Journal of Statistical Software, 61(Code Snippet 1), 1 - 23. doi:http://dx.doi.org/10.18637/jss.v061.c01