The federal opposition says the government's move to threaten Australian citizens with jail time if they return from India is a desperate attempt for a headline.