No. A contract can't enforce that. Each transaction runs on its own, and while the front-run executes, the EVM can't see which transactions come after it in the block. There is no opcode that says "revert unless my back-run follows". In a sandwich the middle transaction belongs to someone else, so y...