On the way of going on to pilgrimage of Imam Hussein (as), if there is a possible danger, it is recommended to visit Imam Hussein's (as) despite the probable danger, but this visitation isn't recommended about the other Infallible Imams (as) and Mecca
source : erfan.ir