As in previous generations, it is impossible to bring Pokemon back a generation. This is to present foreign Pokemon species, moves or abilities etc. from entering a game which has not programmed that data. Thus, if you transfer a Pokemon from Gen VI to Gen VII, it will not be able to go back into its original Gen VI game.
Hope I helped. :)
Source