ali , being a shifty and greedy merchant with a rich criminal history and multiple stints in local jails , thought he could earn a reward from the military by selling out gunnarsson , as it was obvious to ali that illegal activities were going to take place .