Whats the legality of prosecuting someone for doing something that is illegal in their home state, but legal in another state

New Jersey should try prosecuting someone for crossing into Delaware with the intent of pumping their own gasoline.