A Subiaco man has narrowly avoided spending the rest of his life behind bars after Bali prosecutors dropped drug trafficking charges — but he could still face two years in prison.