Ask To Buy can only be turned on for members up to 17.
Use Screen Time to prevent purchasing on your iPhone, iPad, or iPod touch
"You can use Screen Time to prevent unintentional or unauthorized purchases from the iTunes Store. You can require a password for purchases, prevent certain types of purchases, or disable purchasing completely."
For adults, you just have to ask them. That's the clever thing about Family Sharing, it really keeps it to a narrow group of people where you can deal with each other about purchases made.