both trades are valid

sell then buy

Disclaimer