TextEdit app is displaying wide borders at bottom and right corners
Solution 1:
The bars shown are scroll bars. Go to System Preferences app → General and under Show scroll bars: select When scrolling.
It's likely that either Always or Automatically based on mouse or trackpad option is selected, which is causing the scroll bars to appear.
With When scrolling option selected, the wide borders will no longer be shown. The scroll bars, when displayed will be narrow, translucent and will disappear moments after the scrolling is complete.
Solution 2:
You've set your General settings in System Preferences to "Always" Show scroll bars. Got to System Preferences > General and adult the "Show scroll bars" setting as you would like it to be. This is a system wide setting so you'll always see scroll bars on Safari and other apps also.