Tough measures helped Pakistan avert Sri Lanka-like situation: Miftah