How to be sure my transaction will be executed before others in next block?

The official participation nodes include the transactions in the block in the order they see it.
If you have a very good connection to the network and if you select properly the relays, you may get the new block slightly in advance.

Furthermore, you could in theory modify the Algorand software to output a guess of the next block slightly in advance (before it is actually voted in and officially added to the blockchain - so you cannot be 100% sure that will be the correct block but you can have a good guess). But this is very advanced.

Are you trying to frontrun another transaction or are you developing a dApp that requires to know the transactions in the previous block?

In the latter case, you may need to change the design of your dApp to reduce this issue that can limit the throughput of your dApp.