If you don't want to override the user's uiScale, you can use the following code to position a frame on real pixel boundaries:
http://pastey.net/134131
It includes some test code that renders pixel-wide nested borders. The top one in this screenshot is adjusted, the bottom one isn't.