It looks like Scott Lang responded to being on the wrong side by turning himself in, but others responded differently, and that will play in to Infinity War.
It will be very interesting to see how Infinity War handles Ant-Man given that it sounds like Ant-Man and the Wasp may take place before the third Avengers flick.
We have heard that Ant-Man and the Wasp stitches in to the next two Avengers films, making it more intriguing than the first film.
How that choice will square with the new villain he faces will no doubt provide some difficulty.