This sounds like a lovely way to hurt yourself! You could fatally wound yourself, but not even realize it for days. It sounds like great fun for someone else (not me) to try, and I might even help code it!
Do you want to restrict only the data, or the whole database (both data and log)? How do you want to handle databases that are already over 25 Mb? What about the system databases, especially tempdb?