Ainsi means "this way / thus / so" in French.
Il ne faut pas faire ainsi : you shouldn't do it this way -
Ainsi, nous pourrons aller à la piscine : thus we could go to
the pool - ainsi soit-il (adverbial, found at the end of prayers):
so be it / amen.