New Delhi: Linking the Gurdaspur attack to Pakistan, Home Minister Rajnath Singh on Thursday said the three terrorists had infiltrated from there to carry out the strike and asserted that the government will do everything possible to prevent cross-border terrorism.